diff options
| -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 { |
