diff options
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) |
