summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 13:58:28 -0500
committerJeff Carr <[email protected]>2025-10-17 01:45:59 -0500
commit411226cf9df0814ff8e714958da87c853b519bc6 (patch)
treeeea63f72a2614a0cec3c844edbf7cf162e4257e2 /structs.go
parent28839452b290b83d409193044c5737a92cc1ec3e (diff)
A new life awaits you in the Off-world colonies!v0.0.39
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/structs.go b/structs.go
index 2594094..bfbe429 100644
--- a/structs.go
+++ b/structs.go
@@ -1,4 +1,4 @@
-package prep
+package argvpb
// initializes logging and command line options
@@ -28,17 +28,17 @@ var me *AutoArgs
// this is a work in progress
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
+ id int // should be unique
+ hidden bool // don't update the toolkits when it's hidden
+ Argv func([]string) // the function for shell autocomplete
examples func() string // some examples
appExit func() // app Exit()
buildtime func() (string, string) // some examples
- autoFunc func(*Auto) // also a function for autocomplete
+ pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
+ autoFunc func(*Argv) // also a function for autocomplete
guiFunc func() error // enables Gui functions
err error // store any errors from argv
- pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
- pb *Auto
+ pb *Argv
ARGNAME string // a good way to track the name of the binary ?
VERSION string