Crate ci_env

Source

Structs§

CiEnvironment
CiOutput

Enums§

CiProvider
List of supported CI providers.

Functions§

detect_provider
Detects the CI provider by checking for the existence of environment variables specific to each provider. Returns Unknown if no provider is detected.
get_environment
Returns metadata and information about the current CI environment and CI provider.
get_output
Returns the output format for the current CI provider.
is_ci
Returns true if in a CI environment by checking for the existence of the CI environment variable. It does not validate the variable value.