-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc14d89
commit 57ca0be
Showing
11 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package wasi:cli@0.2.0; | ||
|
||
@since(version = 0.2.0) | ||
world command { | ||
@since(version = 0.2.0) | ||
include imports; | ||
|
||
@since(version = 0.2.0) | ||
export run; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
@since(version = 0.2.0) | ||
interface exit { | ||
/// Exit the current instance and any linked instances. | ||
@since(version = 0.2.0) | ||
exit: func(status: result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
package wasi:cli@0.2.0; | ||
|
||
@since(version = 0.2.0) | ||
world imports { | ||
@since(version = 0.2.0) | ||
include wasi:clocks/imports@0.2.0; | ||
@since(version = 0.2.0) | ||
include wasi:filesystem/imports@0.2.0; | ||
@since(version = 0.2.0) | ||
include wasi:sockets/imports@0.2.0; | ||
@since(version = 0.2.0) | ||
include wasi:random/imports@0.2.0; | ||
@since(version = 0.2.0) | ||
include wasi:io/imports@0.2.0; | ||
|
||
@since(version = 0.2.0) | ||
import environment; | ||
@since(version = 0.2.0) | ||
import exit; | ||
@since(version = 0.2.0) | ||
import stdin; | ||
@since(version = 0.2.0) | ||
import stdout; | ||
@since(version = 0.2.0) | ||
import stderr; | ||
@since(version = 0.2.0) | ||
import terminal-input; | ||
@since(version = 0.2.0) | ||
import terminal-output; | ||
@since(version = 0.2.0) | ||
import terminal-stdin; | ||
@since(version = 0.2.0) | ||
import terminal-stdout; | ||
@since(version = 0.2.0) | ||
import terminal-stderr; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
@since(version = 0.2.0) | ||
interface run { | ||
/// Run the program. | ||
@since(version = 0.2.0) | ||
run: func() -> result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
@since(version = 0.2.0) | ||
interface stdin { | ||
@since(version = 0.2.0) | ||
use wasi:io/streams@0.2.0.{input-stream}; | ||
|
||
@since(version = 0.2.0) | ||
get-stdin: func() -> input-stream; | ||
} | ||
|
||
@since(version = 0.2.0) | ||
interface stdout { | ||
@since(version = 0.2.0) | ||
use wasi:io/streams@0.2.0.{output-stream}; | ||
|
||
@since(version = 0.2.0) | ||
get-stdout: func() -> output-stream; | ||
} | ||
|
||
@since(version = 0.2.0) | ||
interface stderr { | ||
@since(version = 0.2.0) | ||
use wasi:io/streams@0.2.0.{output-stream}; | ||
|
||
@since(version = 0.2.0) | ||
get-stderr: func() -> output-stream; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters