Skip to content

Type Method

detect(from:)

Detects the environment from CommandInput. Parses the --env flag, with the VAPOR_ENV environment variable as a fallback.
static func detect(from commandInput: inout CommandInput) throws -> Environment

Return Value

The detected environment, or default env.