From ce813a345030dffa9d997cb837cc8be99b9c5946 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 8 Sep 2025 13:48:06 -0500 Subject: common code. add "gui" to open the gui --- main.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index af7741d..cd4185b 100644 --- a/main.go +++ b/main.go @@ -257,9 +257,20 @@ func main() { // open the gui unless the user performed some other // basically, if you run just 'forge' it should open the GUI - // if opening the GUI, always check git for dirty repos - me.forge.CheckDirty() - doGui() + if argv.Gui != nil { + // if opening the GUI, always check git for dirty repos + me.forge.CheckDirty() + doGui() + } + // got to the end with nothing to do (?) + if dumpWorkRepos() { + // found some repos at least + } else { + // every repo is in a really clean state. no extra files anywhere + // no dirty repos, no repos that need to be published + // nothing different between user and master branch version. not common + log.Info("All of your git repositories appear to be in perfect shape") + } okExit("") } -- cgit v1.2.3