Skip to main content

Crate ci_env

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 the CI environment variable, or by detecting a provider. An explicit CI=false opts out of detection.