diff options
| author | Jeff Carr <[email protected]> | 2025-10-10 11:52:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-10 16:22:18 -0500 |
| commit | e66e515eb9a65aaa1743ddbac4b77ffba996af7f (patch) | |
| tree | d626e4d88231b49cff32fe1dd2f5afb989868551 /argv.go | |
| parent | 5cc996fb000749369a339b850c1f2f2218892537 (diff) | |
walking works better. pb debInfo working
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -18,8 +18,8 @@ var argv args type args struct { List *EmptyCmd `arg:"subcommand:list" help:"show the packages"` - Walk *EmptyCmd `arg:"subcommand:walk" help:"walk the filesystem for new .deb files"` - Update *EmptyCmd `arg:"subcommand:update" help:"update the apt repo"` + Walk *WalkCmd `arg:"subcommand:walk" help:"walk the filesystem for new .deb files"` + Update *EmptyCmd `arg:"subcommand:oldway" help:"the old code to update the apt repo"` Incoming *EmptyCmd `arg:"subcommand:incoming" help:"handle the incoming directory"` MakeDists *EmptyCmd `arg:"subcommand:makedists" help:"make debian mirrors/dists files for 'apt update'"` DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` @@ -30,6 +30,10 @@ type args struct { type EmptyCmd struct { } +type WalkCmd struct { + Verbose bool `arg:"--verbose" help:"be loud about it"` +} + func (args) Buildtime() (string, string) { return BUILDTIME, VERSION } @@ -43,7 +47,7 @@ func (args) Appname() string { } func (a args) DoAutoComplete(pb *prep.Auto) { - base := []string{"--version", "update", "--dry-run", "--force", "incoming", "walk", "list"} + base := []string{"--version", "oldway", "--dry-run", "--force", "incoming", "walk", "list"} if pb.Cmd == "" { pb.Autocomplete3(base) |
