diff options
| author | Jeff Carr <[email protected]> | 2025-10-28 09:14:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-28 09:14:12 -0500 |
| commit | d44985fea3b5a789c7e3b73f152b0c7eb3e9f4fe (patch) | |
| tree | 078cd1dccca34f785df4dca0ab4e503ee8f192f7 /init.go | |
| parent | c5a92b421f202a5b8c807d618aa6edf1cb7db325 (diff) | |
this needs to be redone
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -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 { |
