summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-04 03:52:52 -0500
committerJeff Carr <[email protected]>2025-10-04 03:52:52 -0500
commit455637d05718f7501b580db7852e1acc521b7c83 (patch)
treeefdd89f083902e81c81ca5d8607e120b212c212f /argv.go
parent138b467849829da2348b3a13a797b6873b211cfb (diff)
add an auto-run optionv0.23.132
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/argv.go b/argv.go
index cb952ce..244d53a 100644
--- a/argv.go
+++ b/argv.go
@@ -21,6 +21,7 @@ type args struct {
Full bool `arg:"--full" help:"build every package"`
Reason string `arg:"--reason" help:"tag message"`
Force bool `arg:"--force" help:"try harder than normal"`
+ AutoRun bool `arg:"--auto-run" help:"automatically process everything"`
Port int `arg:"--port" default:"9419" help:"do fun stuff with curl"`
}
@@ -66,7 +67,7 @@ func (args) Buildtime() (string, string) {
func (a args) DoAutoComplete(pb *prep.Auto) {
if pb.Cmd == "" {
- pb.Autocomplete3([]string{"--bash", "quick", "--dry-run", "--full", "--reason", "--version"})
+ pb.Autocomplete3([]string{"--bash", "quick", "--dry-run", "--full", "--reason", "--version", "--auto-run"})
} else {
pb.SubCommand(pb.Goargs...)
}