diff options
| author | Jeff Carr <[email protected]> | 2025-10-02 20:13:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-02 20:13:57 -0500 |
| commit | 17d8a371af62f2abfd8ce612e79aa34e16ecaec2 (patch) | |
| tree | 1a09997afeba3eaa2878dbd7b830e53d95049a19 /argv.go | |
| parent | 8bfcfbe3e400131f158360772dc1e4521a292341 (diff) | |
rename 'wit'
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...) } |
