mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-06-15 00:59:51 +02:00
12 lines
337 B
Rust
12 lines
337 B
Rust
![]() |
fn main() {
|
||
|
let input = std::env::args().nth(1).expect("You must provide a filter to test");
|
||
|
|
||
|
println!("Trying to execute the following filter:\n{}\n\n", input);
|
||
|
|
||
|
if let Err(e) = filter_parser::FilterCondition::parse(&input) {
|
||
|
println!("{}", e.to_string());
|
||
|
} else {
|
||
|
println!("✅ Valid filter");
|
||
|
}
|
||
|
}
|