Skip to main content

install_write_policy

Function install_write_policy 

Source
pub fn install_write_policy(policy: WritePolicy)
Expand description

Installs the target policy for this process. Idempotent, first call wins.

Called from crate::cli::GlobalArgs during flag validation, which is the one hook that runs after the command line is parsed and before any handler executes. Absent — the library used directly, or a unit test — resolution stays permissive, because the rule governs the CLI contract and not the API.