summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
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 {