diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 16:29:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 16:29:40 -0500 |
| commit | 51839a8f623c08df11ff5dae022ac318da754193 (patch) | |
| tree | fb5870ab94b6be8bf3c2a4f41d5e51419020aeca /argv.go | |
| parent | 86b16da2e3f94dc0999447d3ed41f459dcbc6a3a (diff) | |
renamed library
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -6,7 +6,7 @@ package main import ( "os" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" ) /* @@ -45,10 +45,6 @@ type PlaybackCmd struct { Submit *EmptyCmd `arg:"subcommand:submit" help:"convert and submit the last entry"` } -func (args) Version() string { - return ARGNAME + " " + VERSION + " Built on " + BUILDTIME -} - func (a args) Description() string { return ` regex -- interact with Googles' Gemini AI @@ -67,9 +63,15 @@ func (args) Buildtime() (string, string) { return BUILDTIME, VERSION } -func (a args) DoAutoComplete(pb *prep.Auto) { +func (args) Version() string { + return argvpb.StandardVersion(ARGNAME, VERSION, BUILDTIME) +} + +// sends the strings to bash or zsh that will be your options +func (a args) SendCompletionStrings(pb *argvpb.Argv) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"--bash", "interact", "playback", "clean", "--version"}) + base := []string{"--bash", "interact", "playback", "clean", "--version"} + pb.SendStrings(base) } else { pb.SubCommand(pb.Goargs...) } |
