diff options
Diffstat (limited to 'complete.go')
| -rw-r--r-- | complete.go | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/complete.go b/complete.go index ba6ca77..1bd4366 100644 --- a/complete.go +++ b/complete.go @@ -12,7 +12,6 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" "go.wit.com/lib/config" - "go.wit.com/lib/debugger" "go.wit.com/lib/env" "go.wit.com/lib/fhelp" "go.wit.com/lib/protobuf/argvpb" @@ -52,11 +51,10 @@ func (a args) Description() string { // doHelp() return ` -forge -- a tool to manage lots of git repos. forge includes a GUI and TUI. - +forge: + a tool to manage lots of git repos. forge only executes the 'git' command. Everything it does, you can run by hand with 'git'. - - Orginally written to maintain the +50 GO git repositories for the WIT Private Cloud + Orginally written to maintain the git repositories for the WIT Private Cloud ` } @@ -68,12 +66,6 @@ func (args) ArgvGui() error { return nil } -func (args) ArgvDebugger() bool { - debugger.InitDebugger() - // me.myGui = gui.Init() - return true -} - func (args) Examples() string { var out string out += "forge show # show the state of all your repos\n" @@ -97,30 +89,6 @@ func (a args) DoAutoComplete() error { // counter intuitive. return nil on err for now return nil } - /* - if argvpb.PB.HelpCounter > 3 { - argvpb.SetDebug(true) - argvpb.PB.HelpCounter = 0 - if argvpb.Len() == 0 { - fmt.Fprintf(argvpb.Stddbg, "len(PB.Real)=(%d)\n", len(argvpb.PB.Real)) - me.pp.WriteHelp(argvpb.Stderr) - fmt.Fprintf(argvpb.Stddbg, "WriteHelp() (%v)\n", "fricking got here") - fmt.Fprintf(argvpb.Stddbg, "WriteHelp() (%v)\n", "fricking got here") - fmt.Fprintf(argvpb.Stddbg, "WriteHelp() (%v)\n", "fricking got here") - return nil - } else { - fmt.Fprintf(argvpb.Stddbg, "WriteHelp() damnit len(%v) (%v)\n", len(argvpb.PB.Real), argvpb.PB.Real) - fmt.Fprintf(argvpb.Stddbg, "WriteHelp() damnit len(%v) (%v)\n", len(argvpb.PB.Real), argvpb.PB.Real) - fmt.Fprintf(argvpb.Stddbg, "WriteHelp() damnit len(%v) (%v)\n", len(argvpb.PB.Real), argvpb.PB.Real) - } - err = me.pp.WriteHelpForAutocomplete("", argvpb.PB.Real...) - if err != nil { - fmt.Fprintf(argvpb.Stddbg, "returned from WriteHelpForAutocomplete() pb.Real(%v)\n", argvpb.PB.Real) - fmt.Fprintf(argvpb.Stddbg, "returned from WriteHelpForAutocomplete(%v)\n", err) - } - return nil - } - */ if argvpb.PB.IsMatch("cache") { matches, _ := matchCacheFiles() fmt.Fprintf(argvpb.Stdout, "%s", matches) @@ -141,15 +109,10 @@ func (a args) DoAutoComplete() error { // these are base autocomplete strings matches := []string{"clean", "commit", "merge", "patch", "normal", "pull", "rebuild", "generate", "config", "cache"} matches = append(matches, "show", "add", "fixer", "dev", "verify", "mode", "gui", "whatchanged") - matches = append(matches, "--version", "--force", "--all", "--verbose") + matches = append(matches, "--version", "--force", "--all", "--verbose", "--help") fmt.Fprintf(argvpb.Stdout, "%s", strings.Join(matches, " ")) return nil } - err = me.pp.WriteHelpForAutocomplete(argvpb.PB.Partial, argvpb.PB.Real...) - if err != nil { - fmt.Fprintf(argvpb.Stddbg, "returned from WriteHelpForAutocomplete() pb.Real(%v)\n", argvpb.PB.Real) - fmt.Fprintf(argvpb.Stddbg, "returned from WriteHelpForAutocomplete(%v)\n", err) - } return err } |
