Skip to main content

require_forge_cli

Function require_forge_cli 

Source
pub fn require_forge_cli(
    forge: Forge,
) -> Result<(String, (u32, u32, u32)), RkError>
Expand description

The gate a verb runs before its first forge call: the CLI is present and at or above Forge::cli_floor. Returns the binary to spawn and the version found.

It runs before anything is written, locally or remotely, so a stale CLI costs one local process and leaves the clone untouched.

ยงErrors

Reason::PrerequisiteUnmet where the CLI is absent, does not answer, or is below the floor.