Autogenerate missing docs (#3514)

* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
This commit is contained in:
JT
2021-05-30 12:57:04 +12:00
committed by GitHub
parent ed515cbc0c
commit bff81f24aa
155 changed files with 3713 additions and 0 deletions

30
docs/commands/load-env.md Normal file
View 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
```