diff options
| author | Jeff Carr <[email protected]> | 2025-09-26 13:04:34 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-26 13:04:34 -0500 | 
| commit | 89dab2b7bc085f24eeafb28906ea3279120ecbfa (patch) | |
| tree | d483d2c79bccdbb22c3a2517733f1642b76cf10c | |
| parent | 544b0af3cc21ffe7d8524161b521ef6d8f16fb29 (diff) | |
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | argv.go | 4 | ||||
| -rw-r--r-- | doPull.go | 13 | 
3 files changed, 17 insertions, 6 deletions
@@ -6,10 +6,8 @@ BUILDTIME = $(shell date +%Y.%m.%d_%H%M)  # make gocui     # try the ncurses gui plugin  # make andlabs   # try the andlabs gui plugin (uses GTK) -default: install-verbose tag - -tag: -	forge show tag +default: install-verbose +	forge pull list  vet:  	@GO111MODULE=off go vet @@ -114,8 +114,8 @@ type SubmitCmd struct {  }  type PullCmd struct { -	Force bool `arg:"--force"                         help:"try to strong-arm things"` -	// Check   *EmptyCmd `arg:"subcommand:check"         help:"check repo versions"` +	Force bool      `arg:"--force"                         help:"try to strong-arm things"` +	List  *EmptyCmd `arg:"subcommand:list"          help:"list repo versions"`  	// Dirty   *EmptyCmd `arg:"subcommand:dirty"         help:"only check dirty repos"`  	// Patches *EmptyCmd `arg:"subcommand:patches"       help:"only check repos with patches"`  } @@ -36,6 +36,19 @@ func doPull() error {  			return nil  		}  	*/ +	if argv.Pull.List != nil { +		found := gitpb.NewRepos() +		var count int +		for { +			if count > 10 { +				break +			} +			count += 1 +			found.Append(me.forge.Repos.Repos[count]) +		} +		me.forge.PrintPullTable(found) +		return nil +	}  	// below this, you must not be in 'normal' mode  	if me.forge.Config.Mode == forgepb.ForgeMode_NORMAL {  | 
