Module tools

Source
Expand description

Sibling tools: binaries, versions, code mapping.

Enums§

RotateOutcome
Outcome of an eb-keep-logs rotate exit code.
StagedOutcome
Outcome of a staged-rebuild exit code.
Tool
A sibling tool that eb-pipeline starts as a subprocess.

Functions§

check_versions
Check minimum versions of the tools the site needs. With probe_all, tools without a minimum are probed for existence too.
help_lists
Whether bin --help, run with env, lists option on stdout. eb-keep-logs took rotate --lock-timeout without a version of its own: its Zig build says 0.2.1, and its shell script 0.1.0, with the option and without it.
map_rotate
Read an eb-keep-logs rotate exit code: 0 is RotateOutcome::Ok, 75 RotateOutcome::Locked, and any other RotateOutcome::Failed.
map_staged
Read an eb-staged-rebuild run exit code: 0 is StagedOutcome::Ok, 2 StagedOutcome::Refused, 75 StagedOutcome::Pending, and any other StagedOutcome::Failed.
needed
Tools that an enabled phase calls.
probe
Run bin --version and return the parsed version.