Skip to main content

Module context

Module context 

Source
Expand description

Host execution context for setup steps: apply vs dry-run, paths, logs, prompts.

Structs§

HostContext
Mutable per-run state passed into steps and kits.
NonInteractivePrompts
Always returns defaults / no for confirms.
PlannedAction
One planned side effect recorded during dry-run (or planning).
StdioPrompts
Stdin/stdout prompts for interactive CLI/TUI use.

Enums§

ApplyMode
Whether steps mutate the host (Apply) or only record planned actions (DryRun).

Traits§

PromptsProvider
Optional interactive prompts. Non-interactive defaults skip prompts.

Functions§

is_root
True when the process effective uid is 0 (Unix). Non-Unix always returns false.
require_root_for_apply
In Apply mode, require effective uid 0.