diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -3,6 +3,8 @@ package argvpb // try this struct out (?) var me *AutoArgs +var PB *Argv + // this is a work in progress type AutoArgs struct { pb *Argv // the protobuf for the current process @@ -17,11 +19,11 @@ type AutoArgs struct { 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() - parseFlagsFunc func([]string) error // calls go-arg.ParseFlags(flags) - writeHelpForAutocompleteFunc func(string, ...string) error // notsure yet - writeHelpForAutocompleteDebugFunc func(string, ...string) error // notsure yet + parseFlagsFunc func() error // calls go-arg.ParseFlags(flags) + writeHelpForAutocompleteFunc func() error // notsure yet + writeHelpForAutocompleteDebugFunc func() error // notsure yet writeHelpFunc func() error // notsure yet - writeHelpForSubcommandFunc func(string) error // notsure yet + writeHelpForSubcommandFunc func() error // notsure yet examples func() string // some examples appExit func() // app Exit() buildtime func() (string, string) // some examples |
