From a18f8af684565106917207df22e8da06585e45d2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 Oct 2025 11:51:41 -0500 Subject: more init() cleanups --- main.go | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/main.go b/main.go index 320013e..74d179d 100644 --- a/main.go +++ b/main.go @@ -43,27 +43,25 @@ func doInit() *forgepb.Forge { } func doCoreChecks() { - ENV.PrintTable() me.forge.RescanRepos() // looks for new dirs, checks existing repos for changes - if !me.forge.IsModeNormal() { - ENV.PrintTable() - } - if me.forge.IsModeDevel() { - dumpDebug() - } - // if you are in "normal" mode, always run normal every time to catch accidental errors // for example, if you accidentally changed branches from your user branch if me.forge.IsModeNormal() { // show what is still normal and what is not if doNormalStatus() { - log.Info("things are still normal") + // log.Info("things are still normal") } else { - log.Info("things are not normal anymore") + log.Info("doNormalStatus() failed. things are not normal anymore") + } + } else { + if !me.forge.IsModeNormal() { + ENV.PrintTable() + } + if me.forge.IsModeDevel() { + dumpDebug() } } - } func main() { -- cgit v1.2.3