Skip to content

parseBooleanString

parseBooleanString(value): boolean

Defined in: packages/simply-cicd-core/src/flags/env.ts:27

Coerce a string or boolean to a boolean. 'true'/'false' are recognised case- and whitespace-insensitively; anything else is false.

Environment variables are always strings, unlike the boolean flags oclif parses natively, so any flag with an env-var fallback needs this on the env side.

string | boolean

The raw flag or environment value.

boolean

The coerced boolean.