2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: load-env
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
2021-05-30 02:57:04 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Loads an environment update from a record.
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> load-env (update)```
|
2021-05-30 02:57:04 +02:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `update`: the record to use for updates
|
2021-05-30 02:57:04 +02:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Load variables from an input stream
|
2021-05-30 02:57:04 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> {NAME: ABE, AGE: UNKNOWN} | load-env; echo $env.NAME
|
|
|
|
```
|
2021-05-30 02:57:04 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Load variables from an argument
|
2021-05-30 02:57:04 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> load-env {NAME: ABE, AGE: UNKNOWN}; echo $env.NAME
|
|
|
|
```
|