summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 00:16:26 -0500
committerJeff Carr <[email protected]>2025-10-14 00:16:26 -0500
commit660620c105f1a0a7d5e95ab6e2d4dc10113fd249 (patch)
treea3fc7c9a479eb91360be286f1b62b309713a20fb /structs.go
parent38223d25713916ae25261d7adb78c1fa0c40227d (diff)
changes for new lib/config function namesv0.0.35
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 01a6f56..052c7ad 100644
--- a/structs.go
+++ b/structs.go
@@ -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
}