From 1277d1d6408bd7ef0f35a85e0e9434cc1b1bdd27 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 Oct 2025 07:51:33 -0500 Subject: smarter handling of global source --- argv.struct.go | 1 + doShow.go | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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"` } diff --git a/doShow.go b/doShow.go index e72ff34..691dffe 100644 --- a/doShow.go +++ b/doShow.go @@ -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 -- cgit v1.2.3