Skip to content

Commit

Permalink
Refresh command docs for Nu v0.86 (#1112)
Browse files Browse the repository at this point in the history
* Refresh docs for Nu v0.86

* ci skip

* remove some unused commands
  • Loading branch information
hustcer committed Oct 18, 2023
1 parent a08b49b commit 308e38f
Show file tree
Hide file tree
Showing 499 changed files with 1,465 additions and 1,075 deletions.
2 changes: 1 addition & 1 deletion .vuepress/configs/sidebar/command_categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ export const commandCategories = [
'/commands/categories/strings.md',
'/commands/categories/system.md',
'/commands/categories/viewers.md',
];
];
2 changes: 1 addition & 1 deletion commands/docs/alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: alias
categories: |
core
version: 0.85.0
version: 0.86.0
core: |
Alias a command (with optional flags) to a new name.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: all
categories: |
filters
version: 0.85.0
version: 0.86.0
filters: |
Test if every element of the input fulfills a predicate expression.
usage: |
Expand Down
4 changes: 3 additions & 1 deletion commands/docs/ansi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ansi
categories: |
platform
version: 0.85.0
version: 0.86.0
platform: |
Output ANSI codes to change color and style of text.
usage: |
Expand Down Expand Up @@ -93,6 +93,7 @@ Escape sequences usual values:
│ 3 │ foreground │ 33 │ 93 │ yellow │
│ 4 │ foreground │ 34 │ 94 │ blue │
│ 5 │ foreground │ 35 │ 95 │ magenta │
│ 5 │ foreground │ 35 │ 95 │ purple │
│ 6 │ foreground │ 36 │ 96 │ cyan │
│ 7 │ foreground │ 37 │ 97 │ white │
│ 8 │ foreground │ 39 │ │ default │
Expand All @@ -102,6 +103,7 @@ Escape sequences usual values:
│ 12 │ background │ 43 │ 103 │ yellow │
│ 13 │ background │ 44 │ 104 │ blue │
│ 14 │ background │ 45 │ 105 │ magenta │
│ 14 │ background │ 45 │ 105 │ purple │
│ 15 │ background │ 46 │ 106 │ cyan │
│ 16 │ background │ 47 │ 107 │ white │
│ 17 │ background │ 49 │ │ default │
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/ansi_gradient.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ansi gradient
categories: |
platform
version: 0.85.0
version: 0.86.0
platform: |
Add a color gradient (using ANSI color codes) to the given string.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/ansi_link.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ansi link
categories: |
platform
version: 0.85.0
version: 0.86.0
platform: |
Add a link (using OSC 8 escape sequence) to the given string.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/ansi_strip.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ansi strip
categories: |
platform
version: 0.85.0
version: 0.86.0
platform: |
Strip ANSI escape sequences from a string.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/any.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: any
categories: |
filters
version: 0.85.0
version: 0.86.0
filters: |
Tests if any element of the input fulfills a predicate expression.
usage: |
Expand Down
10 changes: 5 additions & 5 deletions commands/docs/append.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: append
categories: |
filters
version: 0.85.0
version: 0.86.0
filters: |
Append any number of rows to a table.
usage: |
Expand Down Expand Up @@ -31,7 +31,7 @@ usage: |

## Examples

Append one integer to a list
Append one int to a list
```nu
> [0 1 2 3] | append 4
╭───┬───╮
Expand Down Expand Up @@ -66,7 +66,7 @@ Append a list of string to a string
```

Append three integer items
Append three int items
```nu
> [0 1] | append [2 3 4]
╭───┬───╮
Expand All @@ -79,7 +79,7 @@ Append three integer items
```

Append integers and strings
Append ints and strings
```nu
> [0 1] | append [2 nu 4 shell]
╭───┬───────╮
Expand All @@ -93,7 +93,7 @@ Append integers and strings
```

Append a range of integers to a list
Append a range of ints to a list
```nu
> [0 1] | append 2..4
╭───┬───╮
Expand Down
4 changes: 2 additions & 2 deletions commands/docs/ast.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ast
categories: |
debug
version: 0.85.0
version: 0.86.0
debug: |
Print the abstract syntax tree (ast) for a pipeline.
usage: |
Expand Down Expand Up @@ -62,6 +62,6 @@ Print the ast of a pipeline with an error, as json, in a nushell table

Print the ast of a pipeline with an error, as json, minified
```nu
> ast 'for x in 1..10 { echo $x ' -j -m
> ast 'for x in 1..10 { echo $x ' --json --minify
```
16 changes: 8 additions & 8 deletions commands/docs/bits.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Various commands for working with bits.
usage: |
Expand Down Expand Up @@ -32,13 +32,13 @@ You must use one of the following subcommands. Using this command as-is will onl

| name | type | usage |
| ---------------------------------------- | ------- | -------------------------------------- |
| [`bits and`](/commands/docs/bits_and.md) | Builtin | Performs bitwise and for integers. |
| [`bits and`](/commands/docs/bits_and.md) | Builtin | Performs bitwise and for ints. |
| [`bits not`](/commands/docs/bits_not.md) | Builtin | Performs logical negation on each bit. |
| [`bits or`](/commands/docs/bits_or.md) | Builtin | Performs bitwise or for integers. |
| [`bits rol`](/commands/docs/bits_rol.md) | Builtin | Bitwise rotate left for integers. |
| [`bits ror`](/commands/docs/bits_ror.md) | Builtin | Bitwise rotate right for integers. |
| [`bits shl`](/commands/docs/bits_shl.md) | Builtin | Bitwise shift left for integers. |
| [`bits shr`](/commands/docs/bits_shr.md) | Builtin | Bitwise shift right for integers. |
| [`bits xor`](/commands/docs/bits_xor.md) | Builtin | Performs bitwise xor for integers. |
| [`bits or`](/commands/docs/bits_or.md) | Builtin | Performs bitwise or for ints. |
| [`bits rol`](/commands/docs/bits_rol.md) | Builtin | Bitwise rotate left for ints. |
| [`bits ror`](/commands/docs/bits_ror.md) | Builtin | Bitwise rotate right for ints. |
| [`bits shl`](/commands/docs/bits_shl.md) | Builtin | Bitwise shift left for ints. |
| [`bits shr`](/commands/docs/bits_shr.md) | Builtin | Bitwise shift right for ints. |
| [`bits xor`](/commands/docs/bits_xor.md) | Builtin | Performs bitwise xor for ints. |

**Tips:** Command `bits` was not included in the official binaries by default, you have to build it with `--features=extra` flag
8 changes: 4 additions & 4 deletions commands/docs/bits_and.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits and
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Performs bitwise and for integers.
Performs bitwise and for ints.
usage: |
Performs bitwise and for integers.
Performs bitwise and for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand All @@ -20,7 +20,7 @@ usage: |

## Parameters

- `target`: target integer to perform bit and
- `target`: target int to perform bit and


## Input/output types:
Expand Down
6 changes: 3 additions & 3 deletions commands/docs/bits_not.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits not
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Performs logical negation on each bit.
usage: |
Expand Down Expand Up @@ -45,7 +45,7 @@ Apply logical negation to a list of numbers

Apply logical negation to a list of numbers, treat input as 2 bytes number
```nu
> [4 3 2] | bits not -n '2'
> [4 3 2] | bits not --number-bytes '2'
╭───┬───────╮
│ 0 │ 65531 │
│ 1 │ 65532 │
Expand All @@ -56,7 +56,7 @@ Apply logical negation to a list of numbers, treat input as 2 bytes number

Apply logical negation to a list of numbers, treat input as signed number
```nu
> [4 3 2] | bits not -s
> [4 3 2] | bits not --signed
╭───┬────╮
│ 0 │ -5 │
│ 1 │ -4 │
Expand Down
8 changes: 4 additions & 4 deletions commands/docs/bits_or.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits or
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Performs bitwise or for integers.
Performs bitwise or for ints.
usage: |
Performs bitwise or for integers.
Performs bitwise or for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand All @@ -20,7 +20,7 @@ usage: |

## Parameters

- `target`: target integer to perform bit or
- `target`: target int to perform bit or


## Input/output types:
Expand Down
6 changes: 3 additions & 3 deletions commands/docs/bits_rol.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits rol
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Bitwise rotate left for integers.
Bitwise rotate left for ints.
usage: |
Bitwise rotate left for integers.
Bitwise rotate left for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand Down
8 changes: 4 additions & 4 deletions commands/docs/bits_ror.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits ror
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Bitwise rotate right for integers.
Bitwise rotate right for ints.
usage: |
Bitwise rotate right for integers.
Bitwise rotate right for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand Down Expand Up @@ -44,7 +44,7 @@ Rotate right a number with 60 bits

Rotate right a list of numbers of one byte
```nu
> [15 33 92] | bits ror 2 -n '1'
> [15 33 92] | bits ror 2 --number-bytes '1'
╭───┬─────╮
│ 0 │ 195 │
│ 1 │ 72 │
Expand Down
10 changes: 5 additions & 5 deletions commands/docs/bits_shl.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits shl
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Bitwise shift left for integers.
Bitwise shift left for ints.
usage: |
Bitwise shift left for integers.
Bitwise shift left for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand Down Expand Up @@ -44,13 +44,13 @@ Shift left a number by 7 bits

Shift left a number with 1 byte by 7 bits
```nu
> 2 | bits shl 7 -n '1'
> 2 | bits shl 7 --number-bytes '1'
0
```

Shift left a signed number by 1 bit
```nu
> 0x7F | bits shl 1 -s
> 0x7F | bits shl 1 --signed
254
```

Expand Down
6 changes: 3 additions & 3 deletions commands/docs/bits_shr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits shr
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Bitwise shift right for integers.
Bitwise shift right for ints.
usage: |
Bitwise shift right for integers.
Bitwise shift right for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand Down
8 changes: 4 additions & 4 deletions commands/docs/bits_xor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: bits xor
categories: |
bits
version: 0.85.0
version: 0.86.0
bits: |
Performs bitwise xor for integers.
Performs bitwise xor for ints.
usage: |
Performs bitwise xor for integers.
Performs bitwise xor for ints.
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

Expand All @@ -20,7 +20,7 @@ usage: |

## Parameters

- `target`: target integer to perform bit xor
- `target`: target int to perform bit xor


## Input/output types:
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/break.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: break
categories: |
core
version: 0.85.0
version: 0.86.0
core: |
Break a loop.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes
categories: |
bytes
version: 0.85.0
version: 0.86.0
bytes: |
Various commands for working with byte data.
usage: |
Expand Down

0 comments on commit 308e38f

Please sign in to comment.