mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
update the main
This commit is contained in:
parent
d0fe9dea61
commit
b1a0110a47
@ -1,11 +1,16 @@
|
||||
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);
|
||||
println!("Trying to execute the following filter:\n{}\n", input);
|
||||
|
||||
if let Err(e) = filter_parser::FilterCondition::parse(&input) {
|
||||
println!("{}", e.to_string());
|
||||
} else {
|
||||
println!("✅ Valid filter");
|
||||
match filter_parser::FilterCondition::parse(&input) {
|
||||
Ok(filter) => {
|
||||
println!("✅ Valid filter");
|
||||
println!("{:#?}", filter);
|
||||
}
|
||||
Err(e) => {
|
||||
println!("❎ Invalid filter");
|
||||
println!("{}", e.to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user