mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 00:41:27 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -1,30 +1,17 @@
|
||||
# exit
|
||||
---
|
||||
title: exit
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
Exits the nu shell. If you have multiple nu shells, use `exit --now` to exit all of them.
|
||||
Runs a script file in the current context.
|
||||
|
||||
## Examples
|
||||
## Signature
|
||||
|
||||
```shell
|
||||
> exit
|
||||
```
|
||||
```> exit (exit-code) --now```
|
||||
|
||||
## Parameters
|
||||
|
||||
- `exit-code`: Exit code to return immediately with
|
||||
- `--now`: Exit out of the shell immediately
|
||||
|
||||
```shell
|
||||
> shells
|
||||
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# │ │ name │ path
|
||||
───┼───┼────────────┼─────────────────────────────────────
|
||||
0 │ │ filesystem │ /home/jonathanturner/Source/nushell
|
||||
1 │ │ filesystem │ /home
|
||||
2 │ X │ filesystem │ /usr
|
||||
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
> exit
|
||||
> shells
|
||||
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# │ │ name │ path
|
||||
───┼───┼────────────┼─────────────────────────────────────
|
||||
0 │ │ filesystem │ /home/jonathanturner/Source/nushell
|
||||
1 │ X │ filesystem │ /home
|
||||
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
> exit --now
|
||||
exits both the shells
|
||||
```
|
||||
|
Reference in New Issue
Block a user