summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-10 12:13:24 -0500
committerJeff Carr <[email protected]>2025-10-10 16:22:19 -0500
commita71d41b045612131597931baffe2097db2b659d3 (patch)
tree9d7fb237128f4644cdfa53bfefc857ddb260daad /argv.go
parente66e515eb9a65aaa1743ddbac4b77ffba996af7f (diff)
it's kinda limping along now
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go20
1 files changed, 12 insertions, 8 deletions
diff --git a/argv.go b/argv.go
index c6ff592..bf3ace2 100644
--- a/argv.go
+++ b/argv.go
@@ -17,14 +17,14 @@ import (
var argv args
type args struct {
- List *EmptyCmd `arg:"subcommand:list" help:"show the packages"`
- 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"`
- 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 *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 *IncomingCmd `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"`
+ Verbose bool `arg:"--verbose" help:"be loud about it"`
+ Force bool `arg:"--force" help:"rebuild everything"`
}
type EmptyCmd struct {
@@ -34,6 +34,10 @@ type WalkCmd struct {
Verbose bool `arg:"--verbose" help:"be loud about it"`
}
+type IncomingCmd struct {
+ Force bool `arg:"--force" help:"rebuild everything"`
+}
+
func (args) Buildtime() (string, string) {
return BUILDTIME, VERSION
}