-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --number flag to split column (#13831)
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.
- Loading branch information
Showing
2 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters