Env

:= []
var! : Str => Try(Str, [VarNotFound(Str), ..])

Reads the given environment variable.

If the value is invalid Unicode, the invalid parts will be replaced with the Unicode replacement character.

Returns Err(VarNotFound(name)) if the variable is not set.

platform! : () => { arch : Arch, os : Os }

Returns the current architecture and operating system.

Note these values are constants from when the platform was built.

Arch : [X86, X64, Arm, Aarch64, Other(Str)]

The CPU architecture the platform was built for.

Os : [Linux, Macos, Windows, Other(Str)]

The operating system the platform was built for.