mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-04-18 07:57:59 +02:00
update the main
This commit is contained in:
parent
d0fe9dea61
commit
b1a0110a47
@ -1,11 +1,16 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
let input = std::env::args().nth(1).expect("You must provide a filter to test");
|
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);
|
println!("Trying to execute the following filter:\n{}\n", input);
|
||||||
|
|
||||||
if let Err(e) = filter_parser::FilterCondition::parse(&input) {
|
match filter_parser::FilterCondition::parse(&input) {
|
||||||
println!("{}", e.to_string());
|
Ok(filter) => {
|
||||||
} else {
|
|
||||||
println!("✅ Valid filter");
|
println!("✅ Valid filter");
|
||||||
|
println!("{:#?}", filter);
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
println!("❎ Invalid filter");
|
||||||
|
println!("{}", e.to_string());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user