diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -19,7 +19,7 @@ type ArgsBash struct { } // try this struct out (?) -var myAuto *AutoArgs +var me *AutoArgs // this is a work in progress type AutoArgs struct { @@ -33,6 +33,7 @@ type AutoArgs struct { autoFunc func(*Auto) // also a function for autocomplete guiFunc func() error // enables Gui functions err error // store any errors from argv + pb *Auto ARGNAME string // a good way to track the name of the binary ? VERSION string @@ -55,5 +56,5 @@ func GetLast(cur string, argv []string) string { // returns the name of the executable registered for shell autocomplete func AppName() string { - return myAuto.ARGNAME + return me.ARGNAME } |
