diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 05:15:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 05:15:33 -0500 |
| commit | 5e7f902d5fae4014b8eef8c4945cbc131c6f701e (patch) | |
| tree | 0e40683c939d51b1e42935e344354cf8a81e89e9 /argv.custom.go | |
| parent | 51839a8f623c08df11ff5dae022ac318da754193 (diff) | |
newer but still not right argvv0.0.30
Diffstat (limited to 'argv.custom.go')
| -rw-r--r-- | argv.custom.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/argv.custom.go b/argv.custom.go new file mode 100644 index 0000000..a288d66 --- /dev/null +++ b/argv.custom.go @@ -0,0 +1,34 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +import ( + "os" + + "go.wit.com/lib/protobuf/argvpb" +) + +// sent via -ldflags +var VERSION string +var BUILDTIME string + +// used for shell auto completion +var APPNAME string = "regex" + +func (a args) Description() string { + return ` +regex -- interact with Googles' Gemini AI + ` +} + +// sends the strings to bash or zsh that will be your options +func (a args) SendCompletionStrings(pb *argvpb.Argv) { + if pb.Cmd == "" { + base := []string{"--bash", "interact", "playback", "clean", "--version"} + pb.SendStrings(base) + } else { + pb.SubCommand(pb.Goargs...) + } + os.Exit(0) +} |
