diff options
| author | Jeff Carr <[email protected]> | 2025-10-18 08:00:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-18 08:00:52 -0500 |
| commit | f683e1adc9fd612a67f6cc34ba3188a8120f87d7 (patch) | |
| tree | 925f08631f9ecb192adb8fdc2863612b68c3f1a6 /structs.go | |
| parent | b2c353f48082a1d581bee0b6ee71c93f58bff603 (diff) | |
still tinkering
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -5,25 +5,26 @@ var me *AutoArgs // this is a work in progress type AutoArgs struct { - pb *Argv // the protobuf for the current process - 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 - mustParseFunc func() error // calls go-arg.MustParse() - parseFlagsFunc func([]string) error // notsure yet - writeHelp func() // notsure yet - writeHelpForSubcommand func(string) // notsure yet - writeHelpForAutocomplete func() // notsure yet - 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 + 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 + mustParseFunc func() error // calls go-arg.MustParse() + parseFlagsFunc func([]string) error // calls go-arg.ParseFlags(flags) + writeHelpForAutocompleteFunc func(string, ...string) error // notsure yet + writeHelpForAutocompleteDebugFunc func(string, ...string) error // notsure yet + writeHelp func() // notsure yet + writeHelpForSubcommand func(string) // notsure yet + 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 // pp *arg.Parser // for parsing the command line args. Yay to alexf lint! } |
