forked from extern/nushell
fix nu-std
README (#11244)
related to - https://github.com/nushell/nushell/issues/10676#issuecomment-1842472941 from @suimong # Description the command in the `README.md` of `nu-std` should use `scope commands` instead of `help commands`, which return an empty list. # User-Facing Changes # Tests + Formatting # After Submitting
This commit is contained in:
parent
51bf8d9f6a
commit
c1c73811d5
@ -9,19 +9,15 @@ provide interactive utilities and building blocks for users writing casual scrip
|
|||||||
To see what's here:
|
To see what's here:
|
||||||
```
|
```
|
||||||
> use std
|
> use std
|
||||||
> help commands | select name usage | where name =~ "std "
|
> scope commands | select name usage | where name =~ "std "
|
||||||
╭────┬─────────────────────────────┬────────────────────────────────────────────────────────────────╮
|
#┬───────────name────────────┬──────────────────────usage──────────────────────
|
||||||
│ # │ name │ usage │
|
0│std assert │Universal assert command
|
||||||
├────┼─────────────────────────────┼────────────────────────────────────────────────────────────────┤
|
1│std assert equal │Assert $left == $right
|
||||||
│ 0 │ std assert │ Universal assert command │
|
2│std assert error │Assert that executing the code generates an error
|
||||||
│ 1 │ std assert equal │ Assert $left == $right │
|
3│std assert greater │Assert $left > $right
|
||||||
. . .
|
4│std assert greater or equal│Assert $left >= $right
|
||||||
│ 11 │ std clip │ put the end of a pipe into the system clipboard. │
|
... ...
|
||||||
│ 12 │ std dirs add │ Add one or more directories to the list. │
|
─┴───────────────────────────┴─────────────────────────────────────────────────
|
||||||
. . .
|
|
||||||
├────┼─────────────────────────────┼────────────────────────────────────────────────────────────────┤
|
|
||||||
│ # │ name │ usage │
|
|
||||||
╰────┴─────────────────────────────┴────────────────────────────────────────────────────────────────╯
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## :toolbox: Using the standard library in the REPL or in scripts
|
## :toolbox: Using the standard library in the REPL or in scripts
|
||||||
|
Loading…
Reference in New Issue
Block a user