package moves // SwitchEnv is the operator-off switch of Phase 1 (index D13): every move // entry point is behind it, and its default is off until the copy record // is approved. const SwitchEnv = "CARLOS_MOVES_PHASE1" // DefaultEnabled is the compiled default. The copy gate // (approved_copy_test.go) requires it false while any copy row is pending. const DefaultEnabled = false // Enabled reads the switch. Unset means the default; "on", "1" and "true" // enable; anything else is off. func Enabled(getenv func(string) string) bool { switch getenv(SwitchEnv) { case "": return DefaultEnabled case "on", "1", "true": return true } return false }