diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 05:40:44 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 05:40:44 -0500 |
| commit | f55f7cd6f04041f9ae01a8cda6b7d2fc16da12b6 (patch) | |
| tree | 912dec71bfc0cb0c8c13cc49072dd2af7b089305 /argv.go | |
| parent | 6c58ab5e15104569b802681cacfb6882269dfb7f (diff) | |
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -3,6 +3,11 @@ package main +import ( + "fmt" + "os" +) + /* this parses the command line arguements using alex flint's go-arg */ @@ -48,3 +53,22 @@ func (a args) Description() string { regex -- interact with Googles' Gemini AI ` } + +/* + handles shell autocomplete +*/ + +func (a args) DoAutoComplete(argv []string) { + switch argv[0] { + case "playback": + fmt.Println("long --uuid purge last submit") + case "clean": + fmt.Println("") + default: + if argv[0] == ARGNAME { + // list the subcommands here + fmt.Println("--json interact playback clean") + } + } + os.Exit(0) +} |
