summaryrefslogtreecommitdiff
path: root/structs.go
blob: 37b754f578fbc5ae0ed007a9558c80d71c748994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package argvpb

// try this struct out (?)
var me *AutoType

// try a global here to see how that turns out
var PB *Argv

// this is a work in progress
type AutoType struct {
	all           *Argvs                  // the history of argv
	last          *Argv                   // the pb from the last time the user tried autocomplete
	Err           error                   // store any errors from argv
	debug         bool                    // is dubugging on?
	setupAuto     bool                    // do shell autocomplete setup
	isAuto        bool                    // try to do autocomplete
	id            int                     // should be unique
	Argv          func([]string)          // the function for shell autocomplete
	autoFunc      func() error            // also a function for autocomplete
	initGuiFunc   func() error            // this is required for 'gui' args to work
	mustParseFunc func() error            // calls go-arg.MustParse()
	examples      func() string           // some examples
	appExit       func()                  // app Exit()
	buildtime     func() (string, string) // some examples
	guiFunc       func() error            // enables Gui functions
}