Reference · reference
env module
use env reads and changes the process environment and reports who and where the process is. Changes made with set and unset affect the config-weave process and every child it spawns afterwards, including commands run through the shell module. Only path_join can fail; it returns Result[string, string]. For facts about the operating system and hardware, see the sys module.
get
get
Reads an environment variable. It returns None when the variable is unset.
set and unset
set
unset
set assigns a variable for this process and its children. unset removes it.
path_split and path_join
path_split
path_join
path_split splits a PATH-style list on the platform separator. path_join builds one from a list of paths, and fails when a part contains the separator.
hostname
hostname The hostname of this machine.
current_user and home_dir
current_user home_dir The name of the user running the process, and that user's home directory.
is_elevated
is_elevated Whether the process runs as root on Unix or as an Administrator on Windows.
use env
if !is_elevated
let editor = match get