summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/argv.go b/argv.go
index 346dc5d..ddbea91 100644
--- a/argv.go
+++ b/argv.go
@@ -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)