summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 05:40:44 -0500
committerJeff Carr <[email protected]>2025-09-09 05:40:44 -0500
commitf55f7cd6f04041f9ae01a8cda6b7d2fc16da12b6 (patch)
tree912dec71bfc0cb0c8c13cc49072dd2af7b089305 /argv.go
parent6c58ab5e15104569b802681cacfb6882269dfb7f (diff)
new more better GUI codebasev0.0.12v0.0.11v0.0.10
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)
+}