std::startup
The inputs a program or a test starts with: its environment variables and its arguments.
Import with import std::startup.
Exports
Section titled “Exports”Types
struct Startup
Section titled “struct Startup”struct Startup env: Map<String, String> = {} args: List<String> = [] end
The inputs a program starts with. env holds the environment variables;
read one with Map.get(startup.env, name). args holds the program’s
arguments, without the executable or source path. Both fields default to
empty, so Startup{} is a Startup with no
environment and no arguments, and a test writes only the inputs it sets:
Startup{args: ["-v"]} or Startup{env: {"PORT" => "8080"}}.
Startup.inspect
Section titled “Startup.inspect”impl Debug for Startup
fn inspect(value: Startup) -> String
impl Debug.inspect