diff options
author | Daniel <kingdread@gmx.de> | 2020-05-04 12:24:24 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-05-04 12:24:24 +0200 |
commit | 17e27776ea152509e1095bbf80f5af65bc7a7997 (patch) | |
tree | 054f71f588a617fd4f0af5ceaf2cc08d401c89b1 /src/fexpr | |
parent | 5aa264ca62efc17e3d55af616aa752c1d24573a2 (diff) | |
download | raidgrep-17e27776ea152509e1095bbf80f5af65bc7a7997.tar.gz raidgrep-17e27776ea152509e1095bbf80f5af65bc7a7997.tar.bz2 raidgrep-17e27776ea152509e1095bbf80f5af65bc7a7997.zip |
Add a -log-before & -log-after predicate
With the file name heuristic for -before and -after in place, we might
want a way for the user to disable it. For now, we simply do this by
providing a new set of predicates without the filter.
In the future, we might have a --disable-heuristics switch to disable
the heuristics, in case we ever add more.
Diffstat (limited to 'src/fexpr')
-rw-r--r-- | src/fexpr/grammar.lalrpop | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop index c0165ce..55bd669 100644 --- a/src/fexpr/grammar.lalrpop +++ b/src/fexpr/grammar.lalrpop @@ -50,6 +50,8 @@ LogPredicate: Box<dyn filters::log::LogFilter> = { "-weekday" <Comma<Weekday>> => filters::log::weekday(<>), "-before" <Date> => filters::log::before(<>), "-after" <Date> => filters::log::after(<>), + "-log-before" <Date> => filters::log::log_before(<>), + "-log-after" <Date> => filters::log::log_after(<>), "-boss" <Comma<Boss>> => filters::log::boss(<>), |