mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
5101b5e306
This allows parsing of data (e.g. key-value pairs) where the last column may contain the delimiter. - this PR should close #13742 # Description Adds a `--number (-n)` flag to `split column`, analogous to `split row --number`. ``` ~> ['author: Salina Yoon' r#'title: Where's Ellie?: A Hide-and-Seek Book'#] | split column --number 2 ': ' key value ╭───┬────────┬──────────────────────────────────────╮ │ # │ key │ value │ ├───┼────────┼──────────────────────────────────────┤ │ 0 │ author │ Salina Yoon │ │ 1 │ title │ Where's Ellie?: A Hide-and-Seek Book │ ╰───┴────────┴──────────────────────────────────────╯ ``` # User-Facing Changes * `split column` gains a `--number` option # Tests + Formatting Tests included in strings::split::column::test::test_examples and commands::split_column::to_column. # After Submitting Reference documentation is auto-generated from code. No other documentation updates necessary. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE | ||
README.md |
This crate contains the majority of our commands
We allow ourselves to move some of the commands in nu-command
to nu-cmd-*
crates as needed.
Internal Nushell crate
This crate implements components of Nushell and is not designed to support plugin authors or other users directly.