Skip to content

Commit

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

* Refresh command docs for Nu v0.87
  • Loading branch information
hustcer committed Nov 15, 2023
1 parent e08f840 commit ad09ef5
Show file tree
Hide file tree
Showing 499 changed files with 1,024 additions and 766 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.86.0
version: 0.87.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.86.0
version: 0.87.0
filters: |
Test if every element of the input fulfills a predicate expression.
usage: |
Expand Down
6 changes: 3 additions & 3 deletions 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.86.0
version: 0.87.0
platform: |
Output ANSI codes to change color and style of text.
usage: |
Expand Down Expand Up @@ -63,7 +63,7 @@ Hello Nu World

Use escape codes, without the '\x1b['
```nu
> $"(ansi -e '3;93;41m')Hello(ansi reset)" # italic bright yellow on red background
> $"(ansi --escape '3;93;41m')Hello(ansi reset)" # italic bright yellow on red background
Hello
```

Expand All @@ -74,7 +74,7 @@ Use structured escape codes
bg: '#ff0000'
attr: b
}
$"(ansi -e $bold_blue_on_red)Hello Nu World(ansi reset)"
$"(ansi --escape $bold_blue_on_red)Hello Nu World(ansi reset)"
Hello Nu World
```

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.86.0
version: 0.87.0
platform: |
Add a color gradient (using ANSI color codes) to the given string.
usage: |
Expand Down
5 changes: 1 addition & 4 deletions 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.86.0
version: 0.87.0
platform: |
Add a link (using OSC 8 escape sequence) to the given string.
usage: |
Expand Down Expand Up @@ -55,6 +55,3 @@ Format a table column into links
> [[url text]; [https://example.com Text]] | ansi link url
```


**Tips:** Command `ansi link` was not included in the official binaries by default, you have to build it with `--features=extra` flag
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.86.0
version: 0.87.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.86.0
version: 0.87.0
filters: |
Tests if any element of the input fulfills a predicate expression.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion 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.86.0
version: 0.87.0
filters: |
Append any number of rows to a table.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion 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.86.0
version: 0.87.0
debug: |
Print the abstract syntax tree (ast) for a pipeline.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion 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.86.0
version: 0.87.0
bits: |
Various commands for working with bits.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_and.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits and
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Performs bitwise and for ints.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion 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.86.0
version: 0.87.0
bits: |
Performs logical negation on each bit.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_or.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits or
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Performs bitwise or for ints.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_rol.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits rol
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Bitwise rotate left for ints.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_ror.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits ror
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Bitwise rotate right for ints.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_shl.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits shl
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Bitwise shift left for ints.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_shr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits shr
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Bitwise shift right for ints.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bits_xor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bits xor
categories: |
bits
version: 0.86.0
version: 0.87.0
bits: |
Performs bitwise xor for ints.
usage: |
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.86.0
version: 0.87.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.86.0
version: 0.87.0
bytes: |
Various commands for working with byte data.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes add
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Add specified bytes to the input.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_at.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes at
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Get bytes defined by a range
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes build
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Create bytes from the arguments.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_collect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes collect
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Concatenate multiple binary into a single binary, with an optional separator between each.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_ends-with.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes ends-with
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Check if bytes ends with a pattern.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_index-of.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes index-of
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Returns start index of first occurrence of pattern in bytes, or -1 if no match.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_length.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes length
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Output the length of any bytes in the pipeline.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes remove
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Remove bytes.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes replace
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Find and replace binary.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_reverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes reverse
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Reverse the bytes in the pipeline.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/bytes_starts-with.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: bytes starts-with
categories: |
bytes
version: 0.86.0
version: 0.87.0
bytes: |
Check if bytes starts with a pattern.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/cal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: cal
categories: |
generators
version: 0.86.0
version: 0.87.0
generators: |
Display a calendar.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: cd
categories: |
filesystem
version: 0.86.0
version: 0.87.0
filesystem: |
Change directory.
usage: |
Expand Down
8 changes: 4 additions & 4 deletions commands/docs/char.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: char
categories: |
strings
version: 0.86.0
version: 0.87.0
strings: |
Output special characters (e.g., 'newline').
usage: |
Expand Down Expand Up @@ -60,18 +60,18 @@ Output prompt character, newline and a hamburger menu character

Output Unicode character
```nu
> char -u 1f378
> char --unicode 1f378
🍸
```

Create Unicode from integer codepoint values
```nu
> char -i (0x60 + 1) (0x60 + 2)
> char --integer (0x60 + 1) (0x60 + 2)
ab
```

Output multi-byte Unicode character
```nu
> char -u 1F468 200D 1F466 200D 1F466
> char --unicode 1F468 200D 1F466 200D 1F466
👨‍👦‍👦
```
2 changes: 1 addition & 1 deletion commands/docs/clear.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: clear
categories: |
platform
version: 0.86.0
version: 0.87.0
platform: |
Clear the terminal.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/collect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: collect
categories: |
filters
version: 0.86.0
version: 0.87.0
filters: |
Collect the stream and pass it to a block.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: columns
categories: |
filters
version: 0.86.0
version: 0.87.0
filters: |
Given a record or table, produce a list of its columns' names.
usage: |
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/commandline.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: commandline
categories: |
core
version: 0.86.0
version: 0.87.0
core: |
View or modify the current command line input buffer.
usage: |
Expand Down
Loading

0 comments on commit ad09ef5

Please sign in to comment.