diff options
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) +} |
