Crate blue_build_utils

Source

Re-exports§

pub use command_output::*;

Modules§

command_output
constants
credentials
secret
semver
syntax_highlighting
traits

Macros§

cowstr
Easily create a Cow<'_, str>.
cowstr_vec
Easily create a Vec<Cow<'_, str>>. Uses the same syntax as vec![].
string
Easily create a String.
string_vec
Easily create a Vec<String>. Uses the same syntax as vec![].

Statics§

BUILD_ID
UUID used to mark the current builds
RUNNING_AS_ROOT
Cached static for the running_as_root function.

Functions§

check_command_exists
Checks for the existance of a given command.
generate_containerfile_path
Generates a 1-1 related Containerfile to a recipe. The file is in the format of Containerfile.{path_hash}.
get_env_var
Get’s the env var wrapping it with a miette error
get_tag_timestamp
has_env_var
Checks if an environment variable is set and isn’t empty.
home_dir
retry
Performs a retry on a given closure with a given nubmer of attempts and delay.
retry_async
Performs a retry on a given closure with a given nubmer of attempts and delay.
running_as_root
Checks if the process is running as root.
running_as_root_prime_cache
Primes the cached function running_as_root.
serde_yaml_err
Creates a serde error for displaying the file and where the error occurred.