Update #4455, Regenerate all commands' docs (#4557)

This commit is contained in:
Justin Ma
2022-02-20 09:13:33 +08:00
committed by GitHub
parent aea4355d04
commit 2ecae0ef43
48 changed files with 481 additions and 52 deletions

View File

@ -16,3 +16,15 @@ Define a custom command
- `params`: parameters
- `block`: body of the definition
## Examples
Define a command and run it
```shell
> def say-hi [] { echo 'hi' }; say-hi
```
Define a command and run it with parameter(s)
```shell
> def say-sth [sth: string] { echo $sth }; say-sth hi
```