load-env

For filesystem.

Loads an environment update from a record.

Command Type

built-in

Signature

> load-env {flags} (update)

Parameters

  • update: The record to use for updates.

Input/output types:

input output
record nothing
nothing nothing
any nothing

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

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.