Re-exports§
pub use command_output::*;
Modules§
Macros§
- cowstr
- Easily create a
Cow<'_, str>. - cowstr_
vec - Easily create a
Vec<Cow<'_, str>>. Uses the same syntax asvec![]. - impl_
de_ fromstr - string
- Easily create a
String. - string_
vec - Easily create a
Vec<String>. Uses the same syntax asvec![]. - sudo_
cmd
Statics§
- BUILD_
ID - UUID used to mark the current builds
- RUNNING_
AS_ ROOT - Cached static for the
running_as_rootfunction.
Functions§
- check_
command_ exists - Checks for the existance of a given command.
- current_
timestamp - 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.