From cfee0dad2418f8e800d15edd3e6b32cebd1119dc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 25 Oct 2025 21:37:10 -0500 Subject: dump lots more stuff --- structs.go | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 57635de..40912f4 100644 --- a/structs.go +++ b/structs.go @@ -7,27 +7,21 @@ var PB *Argv // this is a work in progress type AutoArgs 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() - 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() error // 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 - // flags []string // notsure + 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 } -- cgit v1.2.3