diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,6 +20,7 @@ import ( var argv args type args struct { + Git *GitCmd `arg:"subcommand:git" help:"git stuff"` TestBuild *DefaultCmd `arg:"subcommand:build" help:"try appropriate 'go build'"` DebBuild *DebianCmd `arg:"subcommand:debian" help:"build missing .deb packages"` MacBuild *EmptyCmd `arg:"subcommand:macos" help:"build macos packages"` @@ -50,6 +51,11 @@ type DefaultCmd struct { Force bool `arg:"--force" help:"rebuild everything"` } +type GitCmd struct { + Log *EmptyCmd `arg:"subcommand:log" help:"go-clone from a gowebd repomap"` + Who *EmptyCmd `arg:"subcommand:who" help:"go-clone from a gowebd repomap"` +} + type EmptyCmd struct { } @@ -90,7 +96,7 @@ func (args) Appname() string { func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"--bash", "build", "debian", "install", "upgrade", "macos", "--witcom --version"}) + pb.Autocomplete3([]string{"push", "build", "debian", "install", "upgrade", "macos", "git", "--witcom --version"}) } else { pb.SubCommand(pb.Argv...) } |
