Skip to main content

should_proceed

Function should_proceed 

Source
pub fn should_proceed(
    force: bool,
    is_tty: bool,
    read_line: impl FnOnce() -> String,
) -> bool
Expand description

Decide whether to proceed. force bypasses all prompts; otherwise a non-TTY refuses, and a TTY proceeds only on an exact “nuke” line. read_line is injected so this is unit-testable.