Skip to content

Env Native

Spice
import "std/os/env_native";

Functions

setNativeEnv

Spice
public f<bool> setNativeEnv(string name, string value)

Sets the content of an environment variable to the given value. An existing value is overwritten.

Parameters

Name Type Description
name string Name of the env variable
value string Value to set

Returns: bool — Successful or not