summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go20
1 files changed, 15 insertions, 5 deletions
diff --git a/main.go b/main.go
index 7c90520..9ec860d 100644
--- a/main.go
+++ b/main.go
@@ -50,7 +50,7 @@ func main() {
me.forge = forgepb.Init() // init forge.pb
me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes
if me.forge.Config.Mode != forgepb.ForgeMode_NORMAL {
- me.forge.Config.DumpENV()
+ me.forge.Config.DumpPB()
}
// first find the repos or gopaths to operate on
@@ -192,7 +192,10 @@ func main() {
doGui() // start making our forge GUI
debug() // sits here forever
}
- if me.forge.Config.Mode == forgepb.ForgeMode_NORMAL {
+
+ // DEFAULT BEHAVIOR CHANGES BETWEEN MODES
+ if me.forge.Config.Mode == forgepb.ForgeMode_NORMAL || me.forge.Config.Mode == forgepb.ForgeMode_USER {
+ // PROBABLY YOU ARE WRITING CODE
// got to the end with nothing to do (?)
if showWorkRepos() {
// found some repos at least
@@ -202,11 +205,18 @@ func main() {
// nothing different between user and master branch version. not common
log.Info("All of your git repositories appear to be in perfect shape")
}
- } else {
- found := findAll()
- me.forge.PrintDefaultTB(found)
okExit("")
}
+
+ if me.forge.Config.Mode == forgepb.ForgeMode_MASTER {
+ // PROBABLY YOU ARE PUBLISHING / MERGING CODE
+ defaultBehaviorMaster()
+ okExit("")
+ }
+
+ // PROBABLY A NEW USER
+ found := findAll()
+ me.forge.PrintDefaultTB(found)
okExit("")
}