summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 01:29:52 -0500
committerJeff Carr <[email protected]>2025-10-09 01:29:52 -0500
commit97fb72d696512cbe53502918ea059b4ab6fc9755 (patch)
tree880654594d4078f45082a0fbcb6c9b75edc4595e /argv.go
parentd78f8181ea0f09a9faadfebab99377f8b3f1b61c (diff)
make 'linux' subcommand
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/argv.go b/argv.go
index a474169..df33691 100644
--- a/argv.go
+++ b/argv.go
@@ -25,7 +25,7 @@ type args struct {
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"`
+ 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"`
Upgrade *UpgradeCmd `arg:"subcommand:upgrade" help:"apt upgrade packages installed from mirrors.wit.com"`
@@ -51,6 +51,10 @@ type ProtoCmd struct {
Indentify string `arg:"--identify" help:"identify a .pb file"`
}
+type LinuxCmd struct {
+ Rdate *EmptyCmd `arg:"subcommand:rdate" help:"rdate: check the time from the network"`
+}
+
type DebianCmd struct {
Release bool `arg:"--release" help:"use go-deb --release"`
DryRun bool `arg:"--dry-run" help:"only show what would be packaged"`
@@ -133,7 +137,7 @@ func (args) Appname() string {
}
func (a args) DoAutoComplete(pb *prep.Auto) {
- base := []string{"--version", "build", "upgrade", "git", "publish", "--force", "--all", "pb"}
+ base := []string{"--version", "build", "upgrade", "git", "publish", "--force", "--all", "pb", "linux"}
if _, err := fhelp.CheckCmd("zood"); err == nil {
base = append(base, "zoo")
}