diff options
| author | Jeff Carr <[email protected]> | 2025-10-18 03:23:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-18 03:23:32 -0500 |
| commit | 7ef1d9192c366423f5e6bf2b68946aac5cdea336 (patch) | |
| tree | 72c016d06341849fd3deaa38dac5d7138d56b4b0 /structs.go | |
| parent | 8ad0160a0d62591fbdc26518f8d664ff0ea64b8d (diff) | |
trying to fix gui autocomplete
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -9,18 +9,20 @@ var me *AutoArgs // this is a work in progress type AutoArgs struct { - pb *Argv // the protobuf for the current process - pp *arg.Parser // for parsing the command line args. Yay to alexf lint! - id int // should be unique - Argv func([]string) // the function for shell autocomplete - 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 - ARGNAME string // a good way to track the name of the binary ? - VERSION string - BUILDTIME string - err error // store any errors from argv + pb *Argv // the protobuf for the current process + pp *arg.Parser // for parsing the command line args. Yay to alexf lint! + id int // should be unique + Argv func([]string) // the function for shell autocomplete + initArgv func() (string, string, string) // this is required. gets APPNAME, BUILDTIME & VERSION + initGuiFunc func() error // this is required for 'gui' args to work + 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 + ARGNAME string // a good way to track the name of the binary ? + VERSION string + BUILDTIME string + err error // store any errors from argv // hidden bool // don't update the toolkits when it's hidden } |
