summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-04 03:45:37 -0500
committerJeff Carr <[email protected]>2025-10-04 03:45:37 -0500
commit1989e56cd4c1a1991b8f7c86eba150815e262b43 (patch)
tree9563207825f60440c0cde9107bf62cd3b2bd469c /main.go
parent02f0beb409582be2ebfce40e9e6d9760e014f717 (diff)
start removing old table code
Diffstat (limited to 'main.go')
-rw-r--r--main.go45
1 files changed, 17 insertions, 28 deletions
diff --git a/main.go b/main.go
index f5620b5..78da3fe 100644
--- a/main.go
+++ b/main.go
@@ -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("")
}