diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 45 |
1 files changed, 17 insertions, 28 deletions
@@ -82,29 +82,12 @@ func main() { badExit(err) } } - okExit("") - } - - /* - if argv.Show.BuildForge { + if argv.Dev.BuildForge { buildForge() okExit("") } - - if argv.Show.Build != "" { - if err := doBuild(); err != nil { - badExit(err) - } - okExit("") - } - - if argv.Install != "" { - if err := doInstall(); err != nil { - badExit(err) - } - okExit("") - } - */ + okExit("") + } if argv.Clean != nil { if err := doClean(); err != nil { @@ -186,7 +169,7 @@ func main() { if argv.All { me.forge.PrintHumanTableFull(found) } else { - me.forge.PrintHumanTable(found) + me.forge.PrintDefaultTB(found) } okExit("") } @@ -209,14 +192,20 @@ func main() { doGui() // start making our forge GUI debug() // sits here forever } - // got to the end with nothing to do (?) - if showWorkRepos() { - // found some repos at least + if me.forge.Config.Mode == forgepb.ForgeMode_NORMAL { + // got to the end with nothing to do (?) + if showWorkRepos() { + // 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") + } } 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") + found := findAll() + me.forge.PrintDefaultTB(found) + okExit("") } okExit("") } |
