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,32 +1,35 @@
# move
Move columns.
---
title: move
layout: command
version: 0.59.0
---
## Usage
```shell
> move ...args {flags}
```
Move columns before or after other columns
## Signature
```> move ...columns --after --before```
## Parameters
* ...args: the columns to move
## Flags
* -h, --help: Display this help message
* --after <column path>: the column that will precede the columns moved
* --before <column path>: the column that will be next the columns moved
- `...columns`: the columns to move
- `--after {string}`: the column that will precede the columns moved
- `--before {string}`: the column that will be the next after the columns moved
## Examples
Move the column "type" before the column "name"
```shell
> ls | move type --before name | first
```
or move the column "chickens" after "name"
Move a column before the first column
```shell
> ls | move chickens --after name | first
```
> [[name value index]; [foo a 1] [bar b 2] [baz c 3]] | move index --before name
```
you can selectively move many columns in either direction
Move multiple columns after the last column and reorder them
```shell
> ls | move name chickens --after type | first
```
> [[name value index]; [foo a 1] [bar b 2] [baz c 3]] | move value name --after index
```
Move columns of a record
```shell
> { name: foo, value: a, index: 1 } | move name --before index
```