mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 08:23:24 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user