Implement table command to parse tsv, csv, and JSON

This commit is contained in:
2026-07-06 18:17:47 -05:00
parent ddfd1b6201
commit faf3a16767
7 changed files with 304 additions and 326 deletions

View File

@@ -277,6 +277,10 @@ Destructure the current subject based on the given delimiter.
If a `limit` is provided, split the subject no more than the given number of times.
Example: `foo::bar::baz::ban` -> `split :: 2` -> `[foo, bar, baz::ban]`
#### `table <csv|tsv|json>`
Destructure the current subject into a table from the given format.
If `json`, assumes the data is a list of keyed objects (`{[string]: string|number|boolean}[]`).
#### `join [<on>]`
Join the current destructured subject back together using the given delimiter.
If no delimiter is provided, it will preserve the existing delimiters between substrings.