From 5a738121c04989e1bdcb728347f12e677adf3bd4 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 16:54:27 +0200 Subject: Rename crate and CLI to aif --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3fbcae1..d302f1d 100644 --- a/README.md +++ b/README.md @@ -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] [--] [file...] +aif [-p|--print] [--max-record-bytes N] [--] [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(); -- cgit v1.3.1