diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 02:30:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 02:30:52 -0500 |
| commit | 5e8fab62dc79d50e1d4b447db9f6a70bcd14da42 (patch) | |
| tree | f2b44ad9937394b0822ccb1dba8724ef3d4816f7 /argv.go | |
| parent | 144a0cf158c341c81896fbd0f50380381636659b (diff) | |
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -4,8 +4,9 @@ package main import ( - "fmt" "os" + + "go.wit.com/lib/gui/prep" ) /* @@ -58,17 +59,15 @@ 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") - } +func (args) Appname() string { + return ARGNAME +} + +func (a args) DoAutoComplete(pb *prep.Auto) { + if pb.Cmd == "" { + pb.Autocomplete3([]string{"--bash", "interact", "playback", "clean"}) + } else { + pb.SubCommand(pb.Argv...) } os.Exit(0) } |
