diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ -# aip-filter +# aif Parses and evaluates an [AIP-160](https://google.aip.dev/160)-style filter language for JSON and Rust values. @@ -15,15 +15,15 @@ cargo install --path . --locked The CLI reads one JSON value per line from files or standard input and prints matching records without reformatting. ```text -aip-filter [-p|--print] [--max-record-bytes N] [--] <expr> [file...] +aif [-p|--print] [--max-record-bytes N] [--] <expr> [file...] ``` ```bash -echo '{"price":93,"status":"active"}' | aip-filter 'price > 10 AND status = active' +echo '{"price":93,"status":"active"}' | aif 'price > 10 AND status = active' -aip-filter '"timeout"' events.jsonl -aip-filter 'tags:beta' events.jsonl -aip-filter 'user.settings.theme = dark' events.jsonl +aif '"timeout"' events.jsonl +aif 'tags:beta' events.jsonl +aif 'user.settings.theme = dark' events.jsonl ``` * `--print` prints the parsed expression instead of filtering input. @@ -49,7 +49,7 @@ Function calls are not supported during evaluation. Compile an expression once and reuse the filter. `serde_json::Value` is supported directly; implement `Filterable` for other types. ```rust -use aip_filter::parse; +use aif::parse; use serde_json::json; let expr = parse("state = open AND priority > 3").unwrap().unwrap(); |
