summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-28 09:14:12 -0500
committerJeff Carr <[email protected]>2025-10-28 09:14:12 -0500
commitd44985fea3b5a789c7e3b73f152b0c7eb3e9f4fe (patch)
tree078cd1dccca34f785df4dca0ab4e503ee8f192f7 /init.go
parentc5a92b421f202a5b8c807d618aa6edf1cb7db325 (diff)
this needs to be redone
Diffstat (limited to 'init.go')
-rw-r--r--init.go20
1 files changed, 3 insertions, 17 deletions
diff --git a/init.go b/init.go
index d5dfb79..6962c67 100644
--- a/init.go
+++ b/init.go
@@ -119,23 +119,9 @@ func (f *Forge) postInit() error {
env.SetGlobal("lib/forgepb", "curpatches", "curpatches.pb")
}
- // always set f.mode
- switch env.Get("Mode") {
- case "NORMAL":
- f.mode = ForgeMode_NORMAL
- case "CUSTOM":
- f.mode = ForgeMode_CUSTOM
- case "GOLANG":
- f.mode = ForgeMode_GOLANG
- case "CLEAN":
- f.mode = ForgeMode_CLEAN
- case "MASTER":
- f.mode = ForgeMode_MASTER
- case "DEVEL":
- f.mode = ForgeMode_DEVEL
- default:
- f.mode = ForgeMode_NEWUSER
- }
+ // converts the lib/ENV "mode" string
+ // todo: rethink all this
+ f.mode = getModeENV()
// todo: play with these / determine good values based on user's machine
if cobol.Int(env.Get("RillX")) == 0 {