summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-24 10:30:09 -0500
committerJeff Carr <[email protected]>2025-10-24 10:30:09 -0500
commit2b46985ae8def4ff5779fbc027a6ddbe7a1a6a8d (patch)
treec38a46169ddfd57a3f4619012e63d76f63980a81 /structs.go
parent41cf7c3c4ca2fbfca7f9c2328e6f4e0ac34661d9 (diff)
still kinda works. newer argv.proto
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 1306701..53a2c84 100644
--- a/structs.go
+++ b/structs.go
@@ -6,6 +6,7 @@ var me *AutoArgs
// this is a work in progress
type AutoArgs struct {
pb *Argv // the protobuf for the current process
+ last *Argv // the pb from the last time the user tried autocomplete
id int // should be unique
Argv func([]string) // the function for shell autocomplete
initArgvFunc func() (string, string, string) // this is required. gets APPNAME, BUILDTIME & VERSION
@@ -22,4 +23,8 @@ type AutoArgs struct {
autoFunc func(*Argv) // also a function for autocomplete
guiFunc func() error // enables Gui functions
err error // store any errors from argv
+ debug bool // is dubugging on?
+ setupAuto bool // do shell autocomplete setup
+ isAuto bool // try to do autocomplete
+
}