← all modules
Sky.Core.System
Sky.Core.System
Sky.Core.System — process environment + args + termination
Values
args : () -> Task Error (List String)
cwd : () -> Task Error String
exit : Int -> a
Terminate the process with the given exit code. Polymorphic
getArg : Int -> Task Error (Maybe String)
`getArg n` — zero-indexed positional arg lookup. `Nothing`
getcwd : () -> Task Error String
Alias for `cwd` — kept for backward compatibility.
getenv : String -> Task Error String
getenvBool : String -> Task Error Bool
getenvInt : String -> Task Error Int
getenvOr : String -> String -> String
`getenvOr key default` — returns the env value if present,
loadEnv : () -> Task Error ()
Load environment variables from a `.env`-formatted file at the
setenv : String -> String -> Task Error ()
unsetenv : String -> Task Error ()