mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 11:28:05 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -1,14 +1,33 @@
|
||||
# split-by
|
||||
Creates a new table with the data from the inner tables split by the column given.
|
||||
---
|
||||
title: split-by
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> split-by (column_name) {flags}
|
||||
```
|
||||
Create a new table splitted.
|
||||
|
||||
## Signature
|
||||
|
||||
```> split-by (splitter)```
|
||||
|
||||
## Parameters
|
||||
* `(column_name)` the name of the column within the nested table to split by
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
- `splitter`: the splitter value to use
|
||||
|
||||
## Examples
|
||||
|
||||
split items by column named "lang"
|
||||
```shell
|
||||
>
|
||||
{
|
||||
'2019': [
|
||||
{ name: 'andres', lang: 'rb', year: '2019' },
|
||||
{ name: 'jt', lang: 'rs', year: '2019' }
|
||||
],
|
||||
'2021': [
|
||||
{ name: 'storm', lang: 'rs', 'year': '2021' }
|
||||
]
|
||||
} | split-by lang
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user