diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 04:21:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 04:21:16 -0500 |
| commit | 5f7d925c308e385fc15b3f8e438248fb36d75769 (patch) | |
| tree | 1ead6c8815794ecf9666200a4a9bcac05ca88597 /argv.go | |
| parent | 96f49a0b1f1988e93babe5a139c0b74967a4bf64 (diff) | |
fix --version
Diffstat (limited to 'argv.go')
| -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) } |
