diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 10:03:21 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 10:03:21 -0500 |
| commit | 17565a9f7ec9023856f7ce977b238c9eda91c18a (patch) | |
| tree | ba04dad4dd24389809291988914d73f0bdd260ea /argv.go | |
| parent | 137fbac44c6bdfd746bd561377b3a28988f15172 (diff) | |
clone all go.wit.com repos
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -28,7 +28,7 @@ type args struct { 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"` Test *EmptyCmd `arg:"subcommand:test" help:"test build everything first"` - Clone *EmptyCmd `arg:"subcommand:repomap-clone" help:"go-clone from a gowebd repomap"` + Clone *CloneCmd `arg:"subcommand:clone" help:"go-clone from a gowebd repomap"` 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"` @@ -49,13 +49,18 @@ type DebianCmd struct { Force bool `arg:"--force" help:"rebuild everything"` } +type CloneCmd struct { + DryRun bool `arg:"--dry-run" help:"show what has not yet come to pass"` + Verbose bool `arg:"--verbose" help:"be loud about it"` +} + type UpgradeCmd struct { DryRun bool `arg:"--dry-run" help:"don't really do anything"` Force bool `arg:"--force" help:"force un-install and re-install each package"` } type DefaultCmd struct { - DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` + DryRun bool `arg:"--dry-run" help:"show what has not yet come to pass"` Verbose bool `arg:"--verbose" help:"be loud about it"` Force bool `arg:"--force" help:"rebuild everything"` } @@ -113,6 +118,9 @@ func (a args) DoAutoComplete(pb *prep.Auto) { if _, err := fhelp.CheckCmd("forge"); err == nil { base = append(base, "forge") } + if _, err := fhelp.CheckCmd("go-clone"); err == nil { + base = append(base, "clone") + } if areSuperuser() { base = append(base, "upgrade") base = append(base, "rdate") |
