Add sig alias for signal parsed tag

This commit is contained in:
Félix Saparelli 2021-12-21 16:19:35 +13:00
parent 962c7cd6d6
commit 8a25ea95af
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ impl FromStr for Filter {
tag_no_case("process"),
tag_no_case("pid"),
tag_no_case("signal"),
tag_no_case("sig"),
tag_no_case("complete"),
tag_no_case("exit"),
)),
@ -40,7 +41,7 @@ impl FromStr for Filter {
"kind" | "fek" => Ok(Matcher::FileEventKind),
"source" | "src" => Ok(Matcher::Source),
"process" | "pid" => Ok(Matcher::Process),
"signal" => Ok(Matcher::Signal),
"signal" | "sig" => Ok(Matcher::Signal),
"complete" | "exit" => Ok(Matcher::ProcessCompletion),
m => Err(format!("unknown matcher: {}", m)),
},