From d74582678e03a5a47d1dbe8a319739de36a42162 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Fri, 2 Oct 2026 06:33:41 +0200 Subject: Rename crate and CLI to ele --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 505e82f..d52b9ef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# aif +# ele Parses and evaluates an [AIP-160](https://google.aip.dev/160)-style filter language for JSON and Rust values. @@ -16,15 +16,15 @@ cargo +stable install --path . --locked The CLI reads one JSON value per line from files or standard input and prints matching records without reformatting. ```text -aif [-p|--print] [--max-record-bytes N] [--] [file...] +ele [-p|--print] [--max-record-bytes N] [--] [file...] ``` ```bash -echo '{"price":93,"status":"active"}' | aif 'price > 10 AND status = active' +echo '{"price":93,"status":"active"}' | ele 'price > 10 AND status = active' -aif '"timeout"' events.jsonl -aif 'tags:beta' events.jsonl -aif 'user.settings.theme = dark' events.jsonl +ele '"timeout"' events.jsonl +ele 'tags:beta' events.jsonl +ele 'user.settings.theme = dark' events.jsonl ``` * `--print` prints the parsed expression instead of filtering input. @@ -50,7 +50,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 aif::parse; +use ele::parse; use serde_json::json; let expr = parse("state = open AND priority > 3").unwrap().unwrap(); @@ -63,7 +63,7 @@ assert!(filter.evaluate(&record)); For a custom type, expose its fields through `Filterable`: ```rust -use aif::{Filterable, Value, parse}; +use ele::{Filterable, Value, parse}; struct Issue { state: String, -- cgit v1.3.1