Auto-generate markdown command docs (#4451)

* Finish updating

* a couple improvements

* Update renames

* cleanup examples
This commit is contained in:
JT
2022-02-13 21:22:51 -05:00
committed by GitHub
parent 06f5affc0b
commit 8c0a2d3c15
478 changed files with 7676 additions and 8045 deletions

View File

@ -1,20 +1,28 @@
# merge
Merge a table.
---
title: merge
layout: command
version: 0.59.0
---
## Usage
```shell
> merge <block> {flags}
```
Merge a table into an input table
## Signature
```> merge (block)```
## Parameters
* `<block>` the block to run and merge into the table
## Flags
* -h, --help: Display this help message
- `block`: the block to run and merge into the table
## Examples
Merge a 1-based index column with some ls output
```shell
> ls | select name | keep 3 | merge { echo [1 2 3] | wrap index }
```
Merge an index column into the input table
```shell
> [a b c] | wrap name | merge { [1 2 3] | wrap index }
```
Merge two records
```shell
> {a: 1, b: 2} | merge { {c: 3} }
```