You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`celq`'s output will be saved to the `FRUIT` environment variable as `apples`. That variable can then be used with other commands.
414
415
416
+
### Grep friendly output
417
+
418
+
`celq` has a `--greppable` flag that is inspired by [gron](https://github.com/tomnomnom/gron). If you pass `-g` or `--greppable`, the usual JSON output is converted to a format that can be more easily queried by grep or [ripgrep](https://github.com/BurntSushi/ripgrep).
419
+
420
+
For example, to chain `celq` with ripgrep to find all fields containing `regularMarket`:
One interesting property about `--greppable` is that the output is valid JavaScript code. This unlocks use cases such as embedding TOML, YAML, and JSON5 configs as JavaScript source code. For example:
If you need deterministic outputs, we recommend using the `-S` flag for sorting the output.
451
+
415
452
## Quirks
416
453
417
454
1. Do not rely on the order of the JSON output, by default it is randomized due to Rust implementation details. If you need ordering, pass `--sort-keys` as an argument
0 commit comments