From f55f7cd6f04041f9ae01a8cda6b7d2fc16da12b6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 Sep 2025 05:40:44 -0500 Subject: new more better GUI codebase --- argv.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'argv.go') 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) +} -- cgit v1.2.3