Skip to main content

dry_run_stop

Function dry_run_stop 

Source
pub fn dry_run_stop(
    operation: &str,
    fields: &[(&str, Value)],
) -> Result<bool, SshCliError>
Expand description

Emits the plan for a destructive operation and reports whether to stop.

Returns true when the caller must return without mutating anything. The plan always reaches stdout as JSON, even in text mode: the point of a preview is that a machine can diff it against what it intended, and prose cannot be diffed.

ยงErrors

stdout write failures (including BrokenPipe).