summaryrefslogtreecommitdiff
path: root/bash.orig.go
diff options
context:
space:
mode:
Diffstat (limited to 'bash.orig.go')
-rw-r--r--bash.orig.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/bash.orig.go b/bash.orig.go
index 2d32a05..b539c79 100644
--- a/bash.orig.go
+++ b/bash.orig.go
@@ -27,11 +27,12 @@ type ArgsBash struct {
var myAuto *AutoArgs
type AutoArgs struct {
- id int // should be unique
- hidden bool // don't update the toolkits when it's hidden
- Auto func([]string)
- appName string // a good way to track the name of the binary ?
- pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
+ id int // should be unique
+ hidden bool // don't update the toolkits when it's hidden
+ Auto func([]string)
+ appName string // a good way to track the name of the binary ?
+ pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
+ autoFunc func(*Auto)
}
// argname is the name of the executable
@@ -56,7 +57,7 @@ func Bash(argname string, autocomplete func([]string)) *AutoArgs {
}
// print out auto complete debugging info
-func (pb *Auto) AutoDebug() {
+func (pb *Auto) PrintDebug() {
dur := pb.Duration.AsDuration()
pb.Debugf("AUTOCOMPLETE: arg0='%s' arg1='%s' partial='%s' cmd='%s' age=%s argv=%v\n", pb.Arg0, pb.Arg1, pb.Partial, pb.Cmd, shell.FormatDuration(dur), pb.Argv)
// fmt.Println("--all --gui --verbose --force")