diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 20:02:23 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 20:02:23 -0500 |
| commit | 770e6752f1f07a00455b423780eca30f8578e610 (patch) | |
| tree | 191aae30a00538f63d2e6e13407f29ec7c819da6 /main.go | |
| parent | c381a8d17975a53bcbbda329730d0e3020113389 (diff) | |
add 'forge help'
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -197,6 +197,11 @@ func main() { okExit("") } + if argv.Help != nil { + doHelp() + okExit("") + } + // todo: redo this logic using forgepb if configSave { me.forge.ConfigSave() @@ -220,3 +225,25 @@ func main() { doGui() okExit("") } + +// 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("") + okExit("") +} + +func doHelpPatches() { + log.Info("TODO: ?") + okExit("") +} |
