summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
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
}