summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 21:37:10 -0500
committerJeff Carr <[email protected]>2025-10-25 21:37:10 -0500
commitcfee0dad2418f8e800d15edd3e6b32cebd1119dc (patch)
tree1a04efc1fb679c18a2694f20880bf5d5989bf678 /structs.go
parentc4808b62d90562eb901e37f242ee866dc07d07c6 (diff)
dump lots more stuff
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go40
1 files changed, 17 insertions, 23 deletions
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
}