Skip to main content

is_destructive

Function is_destructive 

Source
pub fn is_destructive(
    command: &str,
    tags: &[String],
    patterns: &[RegexWrapper],
) -> bool
Expand description

Checks whether a command string is destructive based on its tags and regex patterns.