summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index d6d2357..5af91c9 100644
--- a/argv.go
+++ b/argv.go
@@ -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)
+}