summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
committerJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
commit6a62be781be462c769bb1f61198ea584284e6bed (patch)
tree73809b1b12924f3247fdc4ab6fc1809a9068c4c5 /structs.go
parent5d2788edbc203fdb3b99d073e507962cb0f0e6ac (diff)
rename that stupid variable finallyv0.0.37
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 052c7ad..31b7cc4 100644
--- a/structs.go
+++ b/structs.go
@@ -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
}