Skip to main content

Module env

Module env 

Source
Expand description

Environment-variable access.

(env-get NAME) → string or nil (env-get NAME DEFAULT) → string (default if missing) (env-required NAME) → string or raises (env-set NAME VALUE) → nil; sets the var in the script’s process so subsequent exec-check children inherit it. Use to plumb sops-decrypted creds (or any other computed value) into subprocesses without resorting to sh -c. (argv) → list of strings (ScriptCtx::argv) (argv-get N) → nth arg, or nil if out of range (argv-get N DEFAULT) → nth arg, or default

Functions§

install