@ivaniscoding/celq-linux-arm64 0.2.0-alpha.1 → 0.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +45 -5
  2. package/bin/celq +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # celq
2
- [![Crates.io](https://img.shields.io/crates/v/celq.svg)](https://crates.io/crates/celq) [![Documentation](https://docs.rs/celq/badge.svg)](https://docs.rs/celq) [![Minimum rustc 1.90](https://img.shields.io/badge/rustc-1.90+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
2
+ [![Crates.io](https://img.shields.io/crates/v/celq.svg)](https://crates.io/crates/celq) [![Documentation](https://docs.rs/celq/badge.svg)](https://docs.rs/celq) [![Playground](https://img.shields.io/badge/playground-live-brightgreen)](https://celq-playground.github.io/) [![Minimum rustc 1.90](https://img.shields.io/badge/rustc-1.90+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
3
3
 
4
4
  **celq** is a command-line tool for evaluating [Common Expression Language (CEL)](https://cel.dev/) expressions. It processes JSON input, performs computations, and outputs results. Think of it as if [jq](https://jqlang.org/) supported CEL.
5
5
 
@@ -23,11 +23,14 @@ Popular configuration formats such as JSON5, YAML, and TOML are supported. The c
23
23
 
24
24
  For detailed usage examples and recipes, see the [manual](https://docs.rs/celq/latest/celq/).
25
25
 
26
+ ### Interactive Playground
27
+ Want to try `celq` without installing anything? Visit the [celq-playground](https://celq-playground.github.io/) to try it in your browser!
28
+
26
29
  ## Why?
27
30
 
28
31
  There are implementations of CEL for [Go](https://github.com/google/cel-go), [Java](https://github.com/google/cel-java), [C++](https://github.com/google/cel-cpp), [JavaScript](https://github.com/marcbachmann/cel-js), [Python](https://github.com/cloud-custodian/cel-python), [C#](https://github.com/telus-oss/cel-net), [Rust](https://github.com/cel-rust/cel-rust), [Ruby](https://gitlab.com/os85/cel-ruby), and possibly more languages.
29
32
 
30
- `celq` brings the same CEL syntax to the command-line. `celq` is not necessarily better than jq, but perhaps it makes it easier to reuse snippets of code accross multiple places.
33
+ `celq` brings the same CEL syntax to the command-line. `celq` is not necessarily better than jq, but perhaps it makes it easier to reuse snippets of code across multiple places.
31
34
 
32
35
  Moreover, the CEL specification is simpler than the jqlang specification. If you need something less powerful than `jq` or Python, then `celq` might be what you are looking for.
33
36
 
@@ -35,7 +38,7 @@ Moreover, the CEL specification is simpler than the jqlang specification. If you
35
38
 
36
39
  ### Pre-built Binaries
37
40
 
38
- We publish pre-built binaries for Linux, macOS, and Windows in celq's [GitHub Releases page](https://github.com/IvanIsCoding/celq/releases). To install the current version for Linux or macOS, run:
41
+ We publish pre-built binaries for Linux, macOS, FreeBSD, and Windows in celq's [GitHub Releases page](https://github.com/IvanIsCoding/celq/releases). To install the current version for Linux or macOS, run:
39
42
 
40
43
  ```bash
41
44
  curl --proto '=https' --tlsv1.2 -sSf https://get-celq.github.io/install.sh | bash
@@ -48,7 +51,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://get-celq.github.io/install.sh | \
48
51
  bash -s -- --to DESTINATION
49
52
  ```
50
53
 
51
- See the the [installation guide](https://docs.rs/celq/latest/celq/installation_guide) for more details on the installer such as `--force` to replace existing binaries, `--target` to specify which binary to download, versioned URLs, GitHub tokens, and more.
54
+ See the [installation guide](https://docs.rs/celq/latest/celq/installation_guide) for more details on the installer such as `--force` to replace existing binaries, `--target` to specify which binary to download, versioned URLs, GitHub tokens, attestations, and more.
52
55
 
53
56
  ### Homebrew (macOS)
54
57
 
@@ -108,7 +111,7 @@ uvx celq -n '"Hello World"'
108
111
 
109
112
  ### NPM (Node.js/JavaScript)
110
113
 
111
- Node.js users can install celq in their project with:
114
+ `celq` is packaged for [NPM](https://www.npmjs.com/package/celq). Node.js users can install celq in their project with:
112
115
 
113
116
  ```bash
114
117
  npm install celq
@@ -145,6 +148,37 @@ If you are going to use `celq` in scripts or for multiple calls, we recommend us
145
148
  tool: celq
146
149
  ```
147
150
 
151
+ ### Nix
152
+
153
+ `celq` is available for [Nix](https://github.com/NixOS/nix). To run it as a Flake:
154
+
155
+ ```bash
156
+ nix run github:IvanIsCoding/celq -- -n '"Hello World"'
157
+ ```
158
+
159
+ See the [installation guide](https://docs.rs/celq/latest/celq/installation_guide) for other Nix setups.
160
+
161
+ ### FreeBSD
162
+
163
+ FreeBSD builds are tested in [Cirrus CI](https://cirrus-ci.org/) and cross-compiled with [Zig](https://github.com/rust-cross/cargo-zigbuild). Although `celq` is not yet in the ports tree, it does publish pre-built binaries:
164
+
165
+ ```bash
166
+ # Set version
167
+ VERSION=v0.2.0
168
+ RELEASE_URL=https://github.com/IvanIsCoding/celq/releases/download/${VERSION}
169
+
170
+ # Download and verify checksum
171
+ fetch ${RELEASE_URL}/SHA256SUMS
172
+ fetch ${RELEASE_URL}/celq-x86_64-unknown-freebsd.tar.gz
173
+ sha256 -c SHA256SUMS --ignore-missing
174
+
175
+ # Extract and install
176
+ tar xzf celq-x86_64-unknown-freebsd.tar.gz
177
+ sudo install -m 755 celq /usr/local/bin/
178
+ ```
179
+
180
+ `celq` can be installed from source following the [Cargo](#cargo) section. We strive to always compile with the Rust version provided in the ports tree.
181
+
148
182
  ## Limitations
149
183
 
150
184
  ### Eager JSON Parsing
@@ -163,6 +197,10 @@ There may be edge cases or advanced features where behavior differs from the off
163
197
 
164
198
  Currently, the `--arg` syntax only supports `int`, `bool`, `float`, and `string`. Support for other CEL types will be added in the future.
165
199
 
200
+ ### Malformed expressions
201
+
202
+ Currently, the error messages for CEL expressions that are invalid are cryptic. We will enhance them in future releases.
203
+
166
204
  ## Non-Goals
167
205
 
168
206
  ### REPL
@@ -195,3 +233,5 @@ The `install.sh` published with each GitHub release and its template at the root
195
233
  ## Contributing
196
234
 
197
235
  Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
236
+
237
+ Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion in `celq` by you shall be dual-licensed under the [MIT License](LICENSE-MIT) and the [Apache 2.0 license](LICENSE-APACHE). Contributions to `template_install.sh` shall be dedicated to the public domain. Any additional terms or conditions shall not apply.
package/bin/celq CHANGED
Binary file
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "type": "git",
22
22
  "url": "git+https://github.com/IvanIsCoding/celq.git"
23
23
  },
24
- "version": "0.2.0-alpha.1"
24
+ "version": "0.2.0-beta.1"
25
25
  }