Skip to main content

run_named

Function run_named 

Source
pub fn run_named(ctx: &Ctx<'_>, name: &str, all_files: bool) -> Option<Verdict>
Expand description

amont run <check> — one check by name. None when there is no such check, which the caller turns into a usage error.

Lives here rather than in main.rs so registry::lookup stays inside the runtime, and so the hold decision is made once: a named check takes the index-fidelity hold only when it is a Stage::PreCommit check running in staged mode. A pre-push or commit-msg check invoked by name must never touch the working tree — nothing about a push is a staging operation.