summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/argv.go b/argv.go
index b5f15c5..fb76877 100644
--- a/argv.go
+++ b/argv.go
@@ -159,15 +159,18 @@ forge -- a tool to manage lots of git repos. forge includes a GUI and TUI.
// arg1 should be the 'current' thing the user is typing
// it should be empty if the user doesn't have a partial string to match
func DoAutoComplete(autoArgv *prep.Auto) {
+ // autoArgv.FastHelp()
dur := autoArgv.Duration.AsDuration()
if dur < time.Millisecond*300 {
autoArgv.Debug = true
autoArgv.Debugf("TODO: show extended help here '%s' '%s' %v dur=%v\n", autoArgv.Arg0, autoArgv.Arg1, autoArgv.Argv, shell.FormatDuration(dur))
+ autoArgv.AutoDebug()
}
- switch autoArgv.Argv[0] {
+ switch autoArgv.Cmd {
case "checkout":
- fmt.Println("devel master user")
+ // argv.Checkout.Autocomplete("devel master user")
+ autoArgv.Autocomplete(argv.Checkout, "devel master user")
case "clean":
// me.pp.WriteHelp(os.Stderr)
// me.pp.WriteUsageForSubcommand(os.Stderr, me.pp.SubcommandNames()...)