From 479bf2eb410c96c268cd8c113b550687066bbb7e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 25 Sep 2025 15:21:06 -0500 Subject: fixing autocomplete options --- argv.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/argv.go b/argv.go index 1c7c2e3..e3e0421 100644 --- a/argv.go +++ b/argv.go @@ -22,8 +22,12 @@ type args struct { Reason string `arg:"--reason" help:"tag message"` Force bool `arg:"--force" help:"try harder than normal"` Port int `arg:"--port" default:"9419" help:"do fun stuff with curl"` - Bash bool `arg:"--bash" help:"generate bash completion"` - BashAuto []string `arg:"--auto-complete" help:"does the actual autocompletion"` +} + +func (args) Examples() string { + var out string + out += "guireleaser --full # release everything\n" + return out } type QuickCmd struct { @@ -58,7 +62,7 @@ func (args) Appname() string { func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"--bash", "quick"}) + pb.Autocomplete3([]string{"--bash", "quick", "--dry-run", "--full", "--reason"}) } else { pb.SubCommand(pb.Argv...) } -- cgit v1.2.3