mirror of
https://github.com/nushell/nushell
synced 2024-09-21 23:22:05 +00:00
Create exit command documentation
Partial fix of issue #711 Some parts have been copied from the fish documentation
This commit is contained in:
parent
bbb4cc7d5f
commit
e62a2509ae
1 changed files with 17 additions and 0 deletions
17
docs/commands/exit.md
Normal file
17
docs/commands/exit.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# exit
|
||||
|
||||
Exits the nu shell. If STATUS is supplied, it will be converted to an integer and used as the exit code. Otherwise, the exit code will be that of the last command executed.
|
||||
|
||||
## Examples
|
||||
|
||||
```shell
|
||||
> exit
|
||||
```
|
||||
|
||||
```shell
|
||||
> exit 1
|
||||
```
|
||||
|
||||
```shell
|
||||
> exit 0
|
||||
```
|
Loading…
Reference in a new issue