summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--argv.go4
-rw-r--r--doPull.go13
3 files changed, 17 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 4bce613..f20cf8d 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/argv.go b/argv.go
index 814c75d..8d52d49 100644
--- a/argv.go
+++ b/argv.go
@@ -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"`
}
diff --git a/doPull.go b/doPull.go
index e6e8525..2ed67a1 100644
--- a/doPull.go
+++ b/doPull.go
@@ -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 {