Skip to content

Commit dd71523

Browse files
committed
Include WASI 0.2.6 WITs
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 13a1bef commit dd71523

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3313
-22
lines changed

examples/spin-timer/Cargo.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wit/deps/cli@0.2.6/command.wit

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package wasi:cli@0.2.6;
2+
3+
@since(version = 0.2.0)
4+
world command {
5+
@since(version = 0.2.0)
6+
include imports;
7+
8+
@since(version = 0.2.0)
9+
export run;
10+
}

wit/deps/cli@0.2.6/environment.wit

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

0 commit comments

Comments
 (0)