diff options
| -rw-r--r-- | argv.go | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -7,7 +7,6 @@ import ( "os" "go.wit.com/lib/gui/prep" - "go.wit.com/log" ) /* @@ -167,20 +166,8 @@ func (args) Version() string { return ARGNAME + " " + VERSION + " Built on " + BUILDTIME } -// keep this small -func doHelp() { - log.Info("") - log.Info("forge -h : to see the available options") - log.Info("forge --bash : will create a bash autocomplete file") - log.Info("forge : with no arguements, forge tries to load a GO GUI plugin") - log.Info(" : there are two GUI plugins. terminal & GTK") - log.Info("") - log.Info("forge list : shows a table of all your repos") - log.Info("forge checkout : checks out all your repos to the same branch") - log.Info(" : the default is your user branch") - log.Info("forge clean : reverts all repos to the master branch") - log.Info("forge dirty : show all repos git reports as dirty") - log.Info("") +func (args) Buildtime() (string, string) { + return BUILDTIME, VERSION } func (a args) Description() string { @@ -209,7 +196,7 @@ func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "normal", "patch", "pull", "show", "--version"}) } else { - pb.SubCommand(pb.Argv...) + pb.SubCommand(pb.Goargs...) } os.Exit(0) } |
