env
Generated by tinox doc
tinox.core.env, bundled with the compiler and also available as a standalone tinox-central package.
Read write vars
import tinox.core.env
class Main
{
fnc main() -> Int32
{
Env::setVar("APP_MODE", "production")
const mode: String = Env::getVar("APP_MODE")
println("running in " + mode + " mode")
println("cwd: " + Env::currentDir())
Env::removeVar("APP_MODE")
return 0
}
}
class Env
Methods
fn getVar(name: String) → String
fn setVar(name: String, value: String) → Nothing
fn removeVar(name: String) → Nothing
fn currentDir() → String
fn setCurrentDir(path: String) → Nothing