diff options
| author | Jeff Carr <[email protected]> | 2025-10-14 00:16:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-14 00:16:26 -0500 |
| commit | 660620c105f1a0a7d5e95ab6e2d4dc10113fd249 (patch) | |
| tree | a3fc7c9a479eb91360be286f1b62b309713a20fb /structs.go | |
| parent | 38223d25713916ae25261d7adb78c1fa0c40227d (diff) | |
changes for new lib/config function namesv0.0.35
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -26,7 +26,6 @@ type AutoArgs struct { id int // should be unique hidden bool // don't update the toolkits when it's hidden Auto func([]string) // the function for shell autocomplete - appName string // a good way to track the name of the binary ? examples func() string // some examples appExit func() // app Exit() buildtime func() (string, string) // some examples @@ -34,6 +33,10 @@ type AutoArgs struct { autoFunc func(*Auto) // also a function for autocomplete guiFunc func() error // enables Gui functions err error // store any errors from argv + + ARGNAME string // a good way to track the name of the binary ? + VERSION string + BUILDTIME string } // returns the last command (is blank if the current arg is not blank) @@ -52,5 +55,5 @@ func GetLast(cur string, argv []string) string { // returns the name of the executable registered for shell autocomplete func AppName() string { - return myAuto.appName + return myAuto.ARGNAME } |
