diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 09:35:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 09:35:01 -0500 |
| commit | 161347d22985c808c912c141ce8f55602f1dc731 (patch) | |
| tree | b213d9a1c61c589f2cba02e9785efc8f9daef4eb /structs.go | |
| parent | 5ff98fee1dd4731c97b54f039ddcf26d15d68193 (diff) | |
tighten the belts
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 33 |
1 files changed, 16 insertions, 17 deletions
@@ -8,21 +8,20 @@ var PB *Argv // this is a work in progress type AutoType struct { - pb *Argv // the protobuf for the current process - all *Argvs // the history of argv - last *Argv // the pb from the last time the user tried autocomplete - Err error // store any errors from argv - debug bool // is dubugging on? - setupAuto bool // do shell autocomplete setup - isAuto bool // try to do 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 - initGuiFunc func() error // this is required for 'gui' args to work - mustParseFunc func() error // calls go-arg.MustParse() - examples func() string // some examples - appExit func() // app Exit() - buildtime func() (string, string) // some examples - autoFunc func(*Argv) // also a function for autocomplete - guiFunc func() error // enables Gui functions + pb *Argv // the protobuf for the current process + all *Argvs // the history of argv + last *Argv // the pb from the last time the user tried autocomplete + Err error // store any errors from argv + debug bool // is dubugging on? + setupAuto bool // do shell autocomplete setup + isAuto bool // try to do autocomplete + id int // should be unique + Argv func([]string) // the function for shell autocomplete + autoFunc func() error // also a function for autocomplete + initGuiFunc func() error // this is required for 'gui' args to work + mustParseFunc func() error // calls go-arg.MustParse() + examples func() string // some examples + appExit func() // app Exit() + buildtime func() (string, string) // some examples + guiFunc func() error // enables Gui functions } |
