summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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("")
}