Skip to main content

propose

Function propose 

Source
pub fn propose(
    current: Option<&str>,
    ops: &[PolicyOp],
) -> Result<Proposal, DiffError>
Expand description

Build an applyable proposal: apply ops to current (the keel.toml text; None = the file does not exist, which is distinct from Some("") — it selects the /dev/null creation header) and return the patch + structured changes. Untouched regions of current survive byte-for-byte.