diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 11:51:41 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 11:51:41 -0500 |
| commit | a18f8af684565106917207df22e8da06585e45d2 (patch) | |
| tree | 10c016e8780eb8c44e9e46526b846007371c44ed /main.go | |
| parent | f1372f65778356a91975d1932ab9420065c8f10c (diff) | |
more init() cleanups
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -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() { |
