diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 18:41:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 18:41:01 -0500 |
| commit | 4ddb0aa7564ac3886d73118aa5a9b54956cda6be (patch) | |
| tree | 4b789e091f10a4ccb7c72da002d5cf545a210232 /argv.go | |
| parent | d61806f20e4678ea698a788a5b5e2a70e08cdcf5 (diff) | |
start a 'droplet' subcommand
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -24,10 +24,11 @@ type args struct { Git *GitCmd `arg:"subcommand:git" help:"git stuff"` Build *BuildCmd `arg:"subcommand:build" help:"build and install things"` ListPkgs *EmptyCmd `arg:"subcommand:list" help:"list all the packages on mirrors.wit.com"` - Clone *CloneCmd `arg:"subcommand:clone" help:"go-clone from a gowebd repomap"` + Clone *CloneCmd `arg:"subcommand:go-clone" help:"go-clone from a gowebd repomap"` Linux *LinuxCmd `arg:"subcommand:linux" help:"helpful linux things"` Zoo *EmptyCmd `arg:"subcommand:zoo" help:"WIT Private Cloud info"` - PB *ProtoCmd `arg:"subcommand:pb" help:"WIT Private Cloud info"` + PB *ProtoCmd `arg:"subcommand:pb" help:"example .pb files"` + Droplet *DropletCmd `arg:"subcommand:drooplet" help:"do things on virtual machines"` Upgrade *UpgradeCmd `arg:"subcommand:upgrade" help:"apt upgrade packages installed from mirrors.wit.com"` Publish *PublishCmd `arg:"subcommand:publish" help:"publish packages"` RepoMap string `arg:"--repomap" help:"location of the repomap"` @@ -51,6 +52,10 @@ type ProtoCmd struct { Identify string `arg:"--identify" help:"identify a .pb file"` } +type DropletCmd struct { + Trim *EmptyCmd `arg:"subcommand:trim" help:"clean out stuff and power off vm"` +} + type LinuxCmd struct { Rdate *EmptyCmd `arg:"subcommand:rdate" help:"rdate: check the time from the network"` } @@ -144,7 +149,10 @@ func (args) ArgvGui() error { } func (a args) DoAutoComplete(pb *prep.Auto) { - base := []string{"--version", "build", "upgrade", "git", "publish", "--force", "--all", "pb", "linux"} + base := []string{"build", "upgrade", "git", "publish", "pb", "linux", "droplet"} + base = append(base, "--version", "--force", "--all") + + // add these only if installed if _, err := fhelp.CheckCmd("zood"); err == nil { base = append(base, "zoo") } @@ -152,7 +160,7 @@ func (a args) DoAutoComplete(pb *prep.Auto) { base = append(base, "forge") } if _, err := fhelp.CheckCmd("go-clone"); err == nil { - base = append(base, "clone") + base = append(base, "go-clone") } if areSuperuser() { base = append(base, "upgrade") |
