summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 13:13:40 -0500
committerJeff Carr <[email protected]>2025-10-03 13:13:40 -0500
commit888ef5304907d0e8a98472a31728b5398972b647 (patch)
tree6b72b9e0d991b42084201f44e41e74a61e5ceaa9 /argv.go
parent37aeae9b8ff49f42a135a1ff4255835889f2eeba (diff)
new argv stuffv0.1.1
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go44
1 files changed, 23 insertions, 21 deletions
diff --git a/argv.go b/argv.go
index 94e4a26..7ffd70a 100644
--- a/argv.go
+++ b/argv.go
@@ -21,26 +21,28 @@ import (
var argv args
type args struct {
- Git *GitCmd `arg:"subcommand:git" help:"git stuff"`
- TestBuild *DefaultCmd `arg:"subcommand:build" help:"try appropriate 'go build'"`
- Debian *DebianCmd `arg:"subcommand:debian" help:"build missing .deb packages"`
- MacBuild *EmptyCmd `arg:"subcommand:macos" help:"build macos packages"`
- 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 *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"`
- RepoMap string `arg:"--repomap" help:"location of the repomap"`
- Release bool `arg:"--release" help:"use go-deb --release"`
- DryRun bool `arg:"--dry-run" help:"only show what would be packaged"`
- Install bool `arg:"--install" help:"go install the binaries first"`
- Verbose bool `arg:"--verbose" help:"be loud about it"`
- Force bool `arg:"--force" help:"rebuild everything"`
- Recursive bool `arg:"--recursive" help:"go-clone --recursive"`
- WITCOM bool `arg:"--witcom" help:"add the GPL header"`
- Max int32 `arg:"--max" help:"stop building after max builds"`
+ 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"`
+ 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"`
+ RepoMap string `arg:"--repomap" help:"location of the repomap"`
+ Release bool `arg:"--release" help:"use go-deb --release"`
+ DryRun bool `arg:"--dry-run" help:"only show what would be packaged"`
+ Install bool `arg:"--install" help:"go install the binaries first"`
+ Verbose bool `arg:"--verbose" help:"be loud about it"`
+ Force bool `arg:"--force" help:"rebuild everything"`
+ Recursive bool `arg:"--recursive" help:"go-clone --recursive"`
+ WITCOM bool `arg:"--witcom" help:"add the GPL header"`
+ Max int32 `arg:"--max" help:"stop building after max builds"`
+}
+
+type BuildCmd struct {
+ Debian *DebianCmd `arg:"subcommand:debian" help:"build missing .deb packages"`
+ MacBuild *EmptyCmd `arg:"subcommand:macos" help:"build macos packages"`
+ Install *DefaultCmd `arg:"subcommand:install" help:"run make install in each repo"`
}
type DebianCmd struct {
@@ -114,7 +116,7 @@ func (args) Appname() string {
}
func (a args) DoAutoComplete(pb *prep.Auto) {
- base := []string{"--version", "build", "debian", "upgrade", "git", "--force"}
+ base := []string{"--version", "build", "upgrade", "git", "--force"}
if _, err := fhelp.CheckCmd("zood"); err == nil {
base = append(base, "zoo")
}