pub enum IssueCode {
Show 18 variants
UndefinedCommand,
MissingRequiredArg,
UnknownFlag,
InvalidArgType,
SeqZeroIncrement,
InvalidRegex,
InvalidSedExpr,
InvalidJqFilter,
BreakOutsideLoop,
ReturnOutsideFunction,
PossiblyUndefinedVariable,
ConflictingFlags,
InvalidCount,
DiffNeedsTwoFiles,
RecursiveWithoutFlag,
ExtraPositionalArgs,
ForLoopScalarVar,
ShellGlobPattern,
}Expand description
Categorizes validation issues for filtering and tooling.
Variants§
UndefinedCommand
Command not found in registry or user tools.
MissingRequiredArg
Required parameter not provided.
UnknownFlag
Flag not defined in tool schema.
InvalidArgType
Argument type doesn’t match schema.
SeqZeroIncrement
seq increment is zero (infinite loop).
InvalidRegex
Regex pattern is invalid.
InvalidSedExpr
sed expression is invalid.
InvalidJqFilter
jq filter is invalid.
BreakOutsideLoop
break/continue outside of a loop.
ReturnOutsideFunction
return outside of a function.
PossiblyUndefinedVariable
Variable may be undefined.
ConflictingFlags
Multiple conflicting flags.
InvalidCount
count/lines value is zero or negative.
DiffNeedsTwoFiles
diff needs two files.
RecursiveWithoutFlag
Recursive operation without -r flag.
ExtraPositionalArgs
Extra positional arguments beyond what tool accepts.
ForLoopScalarVar
Bare scalar variable in for loop (no word splitting in kaish).
ShellGlobPattern
Unquoted glob pattern that won’t expand (kaish has no implicit globbing).
Implementations§
Trait Implementations§
impl Copy for IssueCode
impl Eq for IssueCode
impl StructuralPartialEq for IssueCode
Auto Trait Implementations§
impl Freeze for IssueCode
impl RefUnwindSafe for IssueCode
impl Send for IssueCode
impl Sync for IssueCode
impl Unpin for IssueCode
impl UnwindSafe for IssueCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.