MCPcopy Index your code
hub / github.com/commitdev/zero / validateEnvironments

Function validateEnvironments

internal/apply/apply.go:188–195  ·  view source on GitHub ↗
(applyEnvironments []string)

Source from the content-addressed store, hash-verified

186}
187
188func validateEnvironments(applyEnvironments []string) {
189 // Strict for now, we can brainstorm how much we want to support custom environments later
190 for _, env := range applyEnvironments {
191 if env != "staging" && env != "production" {
192 exit.Fatal("The currently supported environments are \"staging\" and \"production\"")
193 }
194 }
195}

Callers

nothing calls this directly

Calls 1

FatalFunction · 0.92

Tested by

no test coverage detected