forked from extern/nushell
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -1,17 +1,49 @@
|
||||
# rotate
|
||||
Rotates the table by 90 degrees clockwise.
|
||||
---
|
||||
title: rotate
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> rotate ...args <subcommand> {flags}
|
||||
```
|
||||
Rotates a table clockwise (default) or counter-clockwise (use --ccw flag).
|
||||
|
||||
## Subcommands
|
||||
* rotate counter-clockwise - Rotates the table by 90 degrees counter clockwise.
|
||||
## Signature
|
||||
|
||||
```> rotate ...rest --ccw```
|
||||
|
||||
## Parameters
|
||||
* ...args: the names to give columns once rotated
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
- `...rest`: the names to give columns once rotated
|
||||
- `--ccw`: rotate counter clockwise
|
||||
|
||||
## Examples
|
||||
|
||||
Rotate 2x2 table clockwise
|
||||
```shell
|
||||
> [[a b]; [1 2]] | rotate
|
||||
```
|
||||
|
||||
Rotate 2x3 table clockwise
|
||||
```shell
|
||||
> [[a b]; [1 2] [3 4] [5 6]] | rotate
|
||||
```
|
||||
|
||||
Rotate table clockwise and change columns names
|
||||
```shell
|
||||
> [[a b]; [1 2]] | rotate col_a col_b
|
||||
```
|
||||
|
||||
Rotate table counter clockwise
|
||||
```shell
|
||||
> [[a b]; [1 2]] | rotate --ccw
|
||||
```
|
||||
|
||||
Rotate table counter-clockwise
|
||||
```shell
|
||||
> [[a b]; [1 2] [3 4] [5 6]] | rotate --ccw
|
||||
```
|
||||
|
||||
Rotate table counter-clockwise and change columns names
|
||||
```shell
|
||||
> [[a b]; [1 2]] | rotate --ccw col_a col_b
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user