Debian Codegraph @

vendor/wit-component/tests/interfaces/wasi-http/deps/cli/environment.wit

raw
1 interface environment {
2 /// Get the POSIX-style environment variables.
3 ///
4 /// Each environment variable is provided as a pair of string variable names
5 /// and string value.
6 ///
7 /// Morally, these are a value import, but until value imports are available
8 /// in the component model, this import function should return the same
9 /// values each time it is called.
10 get-environment: func() -> list<tuple<string, string>>;
11
12 /// Get the POSIX-style arguments to the program.
13 get-arguments: func() -> list<string>;
14
15 /// Return a path that programs should use as their initial current working
16 /// directory, interpreting `.` as shorthand for this.
17 initial-cwd: func() -> option<string>;
18 }