summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go27
1 files changed, 5 insertions, 22 deletions
diff --git a/argv.go b/argv.go
index a32f87d..8eed65e 100644
--- a/argv.go
+++ b/argv.go
@@ -15,30 +15,13 @@ type FindCmd struct {
}
type DoCmd struct {
- List bool `arg:"--list" help:"just show a table of the current state"`
- Clone bool `arg:"--clone" help:"git clone build dependancies"`
- Scan bool `arg:"--scan" help:"reload protobuf from .git/"`
- Force bool `arg:"--force" help:"force redo things"`
- GitPull bool `arg:"--git-pull" help:"run 'git pull'"`
- GitReset bool `arg:"--git-reset" help:"run 'git reset --hard'"`
- Build bool `arg:"--build" default:"true" help:"try to build it"`
- Install bool `arg:"--install" help:"also try to install it"`
- RedoGoMod bool `arg:"--RedoGoMod" help:"remake all the go.sum and go.mod files"`
+ List bool `arg:"--list" help:"just show a table of the current state"`
+ GitPull bool `arg:"--pull" help:"run 'git pull'"`
+ GitReset bool `arg:"--git-reset" help:"run 'git reset --hard'"`
+ Scan bool `arg:"--scan" help:"reload protobuf from .git/"`
+ Force bool `arg:"--force" help:"force redo things"`
}
-/*
-arg.MustParse(&args)
-
-switch {
-case args.Checkout != nil:
- fmt.Printf("checkout requested for branch %s\n", args.Checkout.Branch)
-case args.Commit != nil:
- fmt.Printf("commit requested with message \"%s\"\n", args.Commit.Message)
-case args.Push != nil:
- fmt.Printf("push requested from %s to %s\n", args.Push.Branch, args.Push.Remote)
-}
-*/
-
type args struct {
Find *FindCmd `arg:"subcommand:find" help:"select repos (for example, --all or --mine)"`
Do *DoCmd `arg:"subcommand:do" help:"do something ('git pull', 'build', 'install', etc)"`