aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-10-02 06:33:41 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-10-02 06:33:41 +0200
commitd74582678e03a5a47d1dbe8a319739de36a42162 (patch)
tree19e009ac7a6ee8fe410ac386a51ec86a024a2904 /README.md
parentb4b95a173230ce2b836be0cff064bdb6a67d0076 (diff)
downloadele-d74582678e03a5a47d1dbe8a319739de36a42162.tar.gz
ele-d74582678e03a5a47d1dbe8a319739de36a42162.zip
Rename crate and CLI to ele
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 8 insertions, 8 deletions
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] [--] <expr> [file...]
+ele [-p|--print] [--max-record-bytes N] [--] <expr> [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,