From eb363e55753e2df2914bd9ca2a21339590828cf9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Oct 2025 02:39:29 -0500 Subject: add pb argv --- argv.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/argv.go b/argv.go index 014cbf4..a474169 100644 --- a/argv.go +++ b/argv.go @@ -27,6 +27,7 @@ type args struct { 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"` + PB *ProtoCmd `arg:"subcommand:pb" help:"WIT Private Cloud info"` 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"` @@ -46,6 +47,10 @@ type BuildCmd struct { Install *DefaultCmd `arg:"subcommand:install" help:"run make install in each repo"` } +type ProtoCmd struct { + Indentify string `arg:"--identify" help:"identify a .pb file"` +} + type DebianCmd struct { Release bool `arg:"--release" help:"use go-deb --release"` DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` @@ -128,7 +133,7 @@ func (args) Appname() string { } func (a args) DoAutoComplete(pb *prep.Auto) { - base := []string{"--version", "build", "upgrade", "git", "publish", "--force", "--all"} + base := []string{"--version", "build", "upgrade", "git", "publish", "--force", "--all", "pb"} if _, err := fhelp.CheckCmd("zood"); err == nil { base = append(base, "zoo") } -- cgit v1.2.3