summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-08 13:48:06 -0500
committerJeff Carr <[email protected]>2025-09-08 13:48:06 -0500
commitce813a345030dffa9d997cb837cc8be99b9c5946 (patch)
treef74831b31524683476199d8ec5545310fbc8d0d3 /main.go
parent11bf5481c7cb393cf2d3416a9f64be078da27e85 (diff)
common code. add "gui" to open the guiv0.22.153
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 14 insertions, 3 deletions
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("")
}