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: test decides 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 pattern matches the raw command.

Properties

hashCode → int
The hash code for this object.
no setterinherited
label → String
Short description of the matched danger (e.g. recursive delete).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(String command) → bool
Whether command matches 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