Expand description
Pattern matching and output compression.
Structs§
- Failure
Pattern - Strategy for filtering failed command output.
- Failure
Section - TOML configuration for failure output filtering.
- Pattern
- A pattern for matching and extracting information from command output.
- Pattern
File - TOML representation of a pattern file.
- Success
Pattern - Pattern for extracting a summary from successful command output.
Enums§
- Failure
Strategy - Strategy for extracting error information from failed command output.
Functions§
- builtin_
patterns - Built-in pattern definitions for common commands.
- builtins
- Get a reference to the static built-in patterns.
- extract_
failure - Apply a failure strategy to extract actionable output.
- extract_
summary - Apply a success pattern to output, returning the formatted summary if it matches.
- find_
matching - Find the first pattern whose
command_matchmatchescommand. - find_
matching_ ref - Like
find_matchingbut works with a slice of references. - load_
user_ patterns - Load user-defined patterns from a directory of TOML files.
- parse_
pattern_ str - Parse a pattern definition from TOML string content.