mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:36:00 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
30
docs/commands/load-env.md
Normal file
30
docs/commands/load-env.md
Normal file
@ -0,0 +1,30 @@
|
||||
# load-env
|
||||
Set environment variables using a table stream
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> load-env (environ) {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `(environ)` Optional environment table to load in. If not provided, will use the table provided on the input stream
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
|
||||
## Examples
|
||||
Load variables from an input stream
|
||||
```shell
|
||||
> echo [[name, value]; ["NAME", "JT"] ["AGE", "UNKNOWN"]] | load-env; echo $nu.env.NAME
|
||||
```
|
||||
|
||||
Load variables from an argument
|
||||
```shell
|
||||
> load-env [[name, value]; ["NAME", "JT"] ["AGE", "UNKNOWN"]]; echo $nu.env.NAME
|
||||
```
|
||||
|
||||
Load variables from an argument and an input stream
|
||||
```shell
|
||||
> echo [[name, value]; ["NAME", "JT"]] | load-env [[name, value]; ["VALUE", "FOO"]]; echo $nu.env.NAME $nu.env.VALUE
|
||||
```
|
||||
|
Reference in New Issue
Block a user