Skip to main content

Module nuke

Module nuke 

Source
Expand description

wire nuke — hard reset of all wire state on the machine.

NukePlan::compute enumerates everything that would be removed (paths, service units, host MCP entries, optionally the binary) WITHOUT mutating anything — it is the dry-run output and the execution input. NukePlan::execute performs the removal.

Structs§

NukePlan
Everything a nuke will tear down. Computed from the environment; pure (no mutation) so it can be printed for –dry-run / confirm.
NukeReport
What a nuke actually did (for –json + operator output).

Functions§

should_proceed
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.