summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 14:51:30 -0500
committerJeff Carr <[email protected]>2025-10-25 14:51:30 -0500
commit418f790437ac264ede889604f31e6d81c7d35cd0 (patch)
treed073e7933824c4ae815bda411bf1ee7441f4dd47 /structs.go
parent22fcb080548bc57847c2405d724e9f40364fa621 (diff)
compiles and does something. notsure
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/structs.go b/structs.go
index 3a0544e..57635de 100644
--- a/structs.go
+++ b/structs.go
@@ -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