diff options
| author | Jeff Carr <[email protected]> | 2025-10-18 05:10:17 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-18 05:10:17 -0500 |
| commit | 8d1a704d6f41b5f08aabc276d1476266f51c5b63 (patch) | |
| tree | 46c6f81796b9ef351976debf2d8fe216fff56962 /structs.go | |
| parent | 7ef1d9192c366423f5e6bf2b68946aac5cdea336 (diff) | |
move go-args back to the application code
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -1,28 +1,29 @@ package argvpb -import ( - "go.wit.com/dev/alexflint/arg" -) - // try this struct out (?) 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 - 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 + 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 // notsure yet + parseFlags 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 // hidden bool // don't update the toolkits when it's hidden + // pp *arg.Parser // for parsing the command line args. Yay to alexf lint! } |
