mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
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
1 changed files with 9 additions and 13 deletions
|
@ -9,19 +9,15 @@ provide interactive utilities and building blocks for users writing casual scrip
|
|||
To see what's here:
|
||||
```
|
||||
> use std
|
||||
> help commands | select name usage | where name =~ "std "
|
||||
╭────┬─────────────────────────────┬────────────────────────────────────────────────────────────────╮
|
||||
│ # │ name │ usage │
|
||||
├────┼─────────────────────────────┼────────────────────────────────────────────────────────────────┤
|
||||
│ 0 │ std assert │ Universal assert command │
|
||||
│ 1 │ std assert 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 │
|
||||
╰────┴─────────────────────────────┴────────────────────────────────────────────────────────────────╯
|
||||
> scope commands | select name usage | where name =~ "std "
|
||||
#┬───────────name────────────┬──────────────────────usage──────────────────────
|
||||
0│std assert │Universal assert command
|
||||
1│std assert equal │Assert $left == $right
|
||||
2│std assert error │Assert that executing the code generates an error
|
||||
3│std assert greater │Assert $left > $right
|
||||
4│std assert greater or equal│Assert $left >= $right
|
||||
... ...
|
||||
─┴───────────────────────────┴─────────────────────────────────────────────────
|
||||
```
|
||||
|
||||
## :toolbox: Using the standard library in the REPL or in scripts
|
||||
|
|
Loading…
Reference in a new issue