pub enum Kind {
Runnable {
scope: Scope,
severity: Severity,
program: String,
args: Vec<String>,
fix: Fix,
files: bool,
docs_skip: bool,
heavy: bool,
runs_on: RunsOn,
pending_trigger: Option<Box<Trigger>>,
trigger: Option<Box<Trigger>>,
},
Unusable {
why: String,
declared: Option<Severity>,
},
}Expand description
The two things an external can be. Scope and Severity live only on the
runnable side, so a broken external cannot carry a severity nobody applies.
Variants§
Runnable
Fields
files: boolThe command column began files — append the matched paths to
the argv, the way a builtin hands its tool the staged list.
runs_on: RunsOnSee RunsOn. A Runnable exists only for a trusted manifest
(gate), so AnyPlatform is always the trusted declaration.
pending_trigger: Option<Box<Trigger>>What this pre-commit declaration would fire on if its push twin’s
files counted too: its own scope united with the twin’s. Computed
at load (attach_twin_scopes), and NOT applied until
Manifest::resolve_triggers has judged the declaration blocking:
until then External::effective_scope is the declaration’s own,
so a caller that forgets the resolve behaves as before the twin
existed — narrow, and the push runs the suite.