diff options
| author | Jeff Carr <[email protected]> | 2025-10-04 15:29:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-04 15:29:43 -0500 |
| commit | ef0b7c74660c284a8e123b76874da6d0e322e192 (patch) | |
| tree | 7112278936f6fcf176d78f3a10081e85b9b8b48a /argv.go | |
| parent | 947ad21bb370ebb650e7296082d784c9ca3d27cb (diff) | |
smart exit function
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,6 +28,7 @@ type args struct { Rdate *EmptyCmd `arg:"subcommand:rdate" help:"standard rdate"` Zoo *EmptyCmd `arg:"subcommand:zoo" help:"WIT Private Cloud info"` Upgrade *UpgradeCmd `arg:"subcommand:upgrade" help:"apt upgrade packages installed from mirrors.wit.com"` + Publish *EmptyCmd `arg:"subcommand:publish" help:"publish packages"` RepoMap string `arg:"--repomap" help:"location of the repomap"` DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` Install bool `arg:"--install" help:"go install the binaries first"` @@ -118,7 +119,7 @@ func (args) Appname() string { } func (a args) DoAutoComplete(pb *prep.Auto) { - base := []string{"--version", "build", "upgrade", "git", "--force"} + base := []string{"--version", "build", "upgrade", "git", "publish", "--force"} if _, err := fhelp.CheckCmd("zood"); err == nil { base = append(base, "zoo") } |
