pub async fn commit_candidate(
state: &SharedState,
dry_run: bool,
changed: Vec<String>,
mutate: impl FnOnce(&mut GatewayConfig) -> Result<(), ToolError>,
) -> Result<Value, ToolError>Expand description
Applies mutate to a clone of the live config, then validates or commits.