CriticalBashPattern class final
A destructive shell pattern with a human-readable label, surfaced in the approval prompt's reason.
Constructors
- CriticalBashPattern(String label, bool _test(String command))
-
A parsed-shape entry:
testdecides with full argument awareness (used where a bare regex over-matches, e.g. the recursive-delete family — issue #460). - CriticalBashPattern.regex(String label, RegExp pattern)
-
A regex-shaped entry: matches when
patternmatches the raw command.
Properties
Methods
-
matches(
String command) → bool -
Whether
commandmatches this critical shape. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited