summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 10:03:21 -0500
committerJeff Carr <[email protected]>2025-10-03 10:03:21 -0500
commit17565a9f7ec9023856f7ce977b238c9eda91c18a (patch)
treeba04dad4dd24389809291988914d73f0bdd260ea /argv.go
parent137fbac44c6bdfd746bd561377b3a28988f15172 (diff)
clone all go.wit.com repos
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/argv.go b/argv.go
index 3393089..e4f36ff 100644
--- a/argv.go
+++ b/argv.go
@@ -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")