diff options
| -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 |
