diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 07:30:35 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 13:13:27 -0500 |
| commit | 31da3672f58df9a80e32a846bc9ff7bed3fdeffd (patch) | |
| tree | 6762cd3b6142c394778ac99a4cceb969bb4b1ec5 /argv.go | |
| parent | 0f84c35582c4498e00839d782fea704cede98cd7 (diff) | |
start sorting the code out
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -17,10 +17,13 @@ import ( var argv args type args struct { - Update *EmptyCmd `arg:"subcommand:update" help:"update the apt repo"` - DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` - Verbose bool `arg:"--verbose" help:"be loud about it"` - Force bool `arg:"--force" help:"rebuild everything"` + List *EmptyCmd `arg:"subcommand:list" help:"show the packages"` + Walk *EmptyCmd `arg:"subcommand:scan" help:"walk the filesystem for new .deb files"` + Update *EmptyCmd `arg:"subcommand:update" help:"update the apt repo"` + Incoming *EmptyCmd `arg:"subcommand:incoming" help:"handle the incoming directory"` + DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` + Verbose bool `arg:"--verbose" help:"be loud about it"` + Force bool `arg:"--force" help:"rebuild everything"` } type EmptyCmd struct { @@ -39,7 +42,7 @@ func (args) Appname() string { } func (a args) DoAutoComplete(pb *prep.Auto) { - base := []string{"--version", "update", "--dry-run", "--force"} + base := []string{"--version", "update", "--dry-run", "--force", "incoming", "walk", "list"} if pb.Cmd == "" { pb.Autocomplete3(base) |
