diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 01:05:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 01:05:11 -0500 |
| commit | 4acdb3bce3d7afb5f9218ac958b235358493563c (patch) | |
| tree | 7b7c16bdf5efac5413f0003356208864e348d43e /argv.go | |
| parent | 01fa86c6f69dc7f34b92f98c0d45ff93c324da9f (diff) | |
more autocomplete work
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -22,7 +22,7 @@ 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"` + Debian *DebianCmd `arg:"subcommand:debian" help:"build missing .deb packages"` MacBuild *EmptyCmd `arg:"subcommand:macos" help:"build macos packages"` MakeInstall *DefaultCmd `arg:"subcommand:install" help:"run make install in each repo"` ListPkgs *EmptyCmd `arg:"subcommand:list" help:"list all the packages on mirrors.wit.com"` @@ -32,6 +32,7 @@ type args struct { RepoMap string `arg:"--repomap" help:"location of the repomap"` Release bool `arg:"--release" help:"use go-deb --release"` DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` + Install bool `arg:"--install" help:"go install the binaries first"` Verbose bool `arg:"--verbose" help:"be loud about it"` Force bool `arg:"--force" help:"rebuild everything"` Recursive bool `arg:"--recursive" help:"go-clone --recursive"` @@ -40,9 +41,10 @@ type args struct { } type DebianCmd struct { - DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` - Verbose bool `arg:"--verbose" help:"be loud about it"` - Force bool `arg:"--force" help:"rebuild everything"` + DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` + Verbose bool `arg:"--verbose" help:"be loud about it"` + Force bool `arg:"--force" help:"rebuild everything"` + SkipInstall bool `arg:"--skip-install" help:"rebuild everything"` } type DefaultCmd struct { @@ -96,7 +98,7 @@ func (args) Appname() string { func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"push", "build", "debian", "install", "upgrade", "macos", "git", "--witcom --version"}) + pb.Autocomplete3([]string{"push", "build", "debian", "--install", "upgrade", "macos", "git", "--witcom --version --dry-run"}) } else { pb.SubCommand(pb.Argv...) } |
