load-env for filesystem

Loads an environment update from a record.

Signature

> load-env {flags} (update)

Parameters

  • update: The record to use for updates.

Input/output types:

inputoutput
nothingnothing
recordnothing

Examples

Load variables from an input stream

> {NAME: ABE, AGE: UNKNOWN} | load-env; $env.NAME
ABE

Load variables from an argument

> load-env {NAME: ABE, AGE: UNKNOWN}; $env.NAME
ABE