diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 07:51:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 07:51:33 -0500 |
| commit | 1277d1d6408bd7ef0f35a85e0e9434cc1b1bdd27 (patch) | |
| tree | 1426d299b6e01ec6217ab5efaf8937f7536ae9eb | |
| parent | b79731472d70867f9e73cdeeb0917bc287170ee6 (diff) | |
smarter handling of global source
| -rw-r--r-- | argv.struct.go | 1 | ||||
| -rw-r--r-- | doShow.go | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/argv.struct.go b/argv.struct.go index 556a1cb..e7ad047 100644 --- a/argv.struct.go +++ b/argv.struct.go @@ -42,6 +42,7 @@ type ShowCmd struct { DirtySave *EmptyCmd `arg:"subcommand:dirtysave" help:"check dirty then save"` MasterDefault *EmptyCmd `arg:"subcommand:masterdefault" help:"run the default behavior for master branches"` Mtime *EmptyCmd `arg:"subcommand:mtime" help:"show mtime changes"` + ENV *EmptyCmd `arg:"subcommand:ENV" help:"show the ENV"` Repo *RepoCmd `arg:"subcommand:repos" help:"print a table of the current repos"` Tag *TagCmd `arg:"subcommand:tag" help:"show git tags"` } @@ -3,7 +3,7 @@ package main -// An app to submit patches for the 30 GO GUI repos +import "go.wit.com/lib/ENV" func doShow() (string, error) { if argv.Show.Dirty != nil { @@ -21,6 +21,11 @@ func doShow() (string, error) { return "tags shown", nil } + if argv.Show.ENV != nil { + footer := ENV.PrintTable() + return "Current ENV: " + footer, nil + } + if argv.Show.Mtime != nil { s, err := me.forge.Repos.ScanAllMtimesVerbose() return s, err |
