pub struct FlagSchema {
pub skip_arg: Vec<String>,
pub skip_solo: Vec<String>,
pub escalation: Vec<String>,
pub path: Vec<String>,
}Expand description
Flag-level knowledge for subcommand extraction and path/escalation detection.
All flag names are strings from config (not parsed Words).
skip_arg and skip_solo must be exhaustive for the command’s flags that
consume values or stand alone — omitting a value-consuming flag silently
corrupts subcommand resolution.
Fields§
§skip_arg: Vec<String>Flags that consume the next word as their value (e.g. -C, --git-dir).
skip_solo: Vec<String>Standalone boolean flags (e.g. --bare, --no-pager).
escalation: Vec<String>Flags that escalate severity (e.g. --force, --force-with-lease).
Detected via exact match or --flag=value prefix.
path: Vec<String>Flags whose values are filesystem paths (e.g. -C for git).
Implementations§
Source§impl FlagSchema
impl FlagSchema
Sourcepub fn extend(&mut self, other: FlagSchema)
pub fn extend(&mut self, other: FlagSchema)
Append all flags from other onto self. Duplicates in skip_arg,
skip_solo, and escalation are harmless (consumers use .any() scans).
Duplicate path entries will produce duplicate affected_paths from
extract_paths — consumers should tolerate this.
Trait Implementations§
Source§impl Clone for FlagSchema
impl Clone for FlagSchema
Source§fn clone(&self) -> FlagSchema
fn clone(&self) -> FlagSchema
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more