Commit 7ceefbd
authored
feat(cli): integrate jmespath-extensions for enhanced query capabilities (#482)
* feat(cli): integrate jmespath-extensions for enhanced query capabilities
Add 150+ extended JMESPath functions for more powerful query and
transformation capabilities when using the -q/--query flag.
New function categories:
- String: upper(), lower(), trim(), split(), replace()
- Type: type_of(), is_empty(), to_number(), to_string(), default()
- Math: round(), min(), max()
- Utility: if(), coalesce(), unique()
- DateTime: now(), format_date()
- Validation: is_ipv4(), is_ipv6(), is_email(), is_url()
- Encoding: base64_encode(), base64_decode()
Changes:
- Add jmespath_extensions dependency with selective features
- Update output.rs to use extended runtime with OnceLock
- Add compile_jmespath() helper for consistent usage
- Update cloud/utils.rs and enterprise/utils.rs to use extended runtime
- Add comprehensive tests for extension functions
- Update documentation with examples of new functions
Closes #481
* chore: add 0BSD to allowed licenses in deny.toml
The jmespath_extensions dependency brings in rphonetic which uses
enum-iterator, licensed under 0BSD. This is a permissive license
similar to MIT with no restrictions.1 parent 1ac0730 commit 7ceefbd
File tree
8 files changed
+425
-15
lines changed- crates/redisctl
- src
- commands
- cloud
- enterprise
- tests
- docs/src/common-features
8 files changed
+425
-15
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments