Module env

Source
Expand description

Builds environment variable sets for command execution.

This takes in the environment of the running process, adds built-in environment variables, and uses the user’s up configuration to generate the environment to pass to tasks.

§Built-in Environment Variables

These env vars are automatically resolved, and will override the same env var set by the user.

§UP_HARDWARE_UUID

(macOS only)

The UP_HARDWARE_UUID maps to the UUID of the currently executing macOS device. This is particularly useful for setting per-host defaults. On non-macOS platforms this resolves to the empty string.

Enums§

EnvError
Errors thrown by this file.

Constants§

UP_HARDWARE_UUID
Environment variable name that is automatically provided for users to refer to, particularly in the defaults run_lib or subcommand.

Functions§

get_env
Build a set of environment variables from the up config settings and the current command’s environment..