Autogenerate missing docs (#3514)

* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
This commit is contained in:
JT
2021-05-30 12:57:04 +12:00
committed by GitHub
parent ed515cbc0c
commit bff81f24aa
155 changed files with 3713 additions and 0 deletions

30
docs/commands/flatten.md Normal file
View File

@ -0,0 +1,30 @@
# flatten
Flatten the table.
## Usage
```shell
> flatten ...args {flags}
```
## Parameters
* ...args: optionally flatten data by column
## Flags
* -h, --help: Display this help message
## Examples
* flatten a table
```shell
> echo [[N, u, s, h, e, l, l]] | flatten | first
```
* flatten a column having a nested table
```shell
> echo [[origin, people]; [Ecuador, (echo [[name, meal]; ['Andres', 'arepa']])]] | flatten | get meal
```
restrict the flattening by passing column names
```shell
> echo [[origin, crate, versions]; [World, (echo [[name]; ['nu-cli']]), ['0.21', '0.22']]] | flatten versions | last | get versions
```