-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename wasi-cli-base to wasi-cli, delete
preview
package, import wa…
…si-cli wasi-cli import is sum of WebAssembly/wasi-cli#19 and WebAssembly/wasi-cli#20
- Loading branch information
Pat Hickey
committed
Aug 4, 2023
1 parent
d7f1a78
commit 3c4463c
Showing
11 changed files
with
90 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
interface exit { | ||
/// Exit the current instance and any linked instances. | ||
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
interface run { | ||
/// Run the program. | ||
run: func() -> result | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
interface terminal-input { | ||
/// The input side of a terminal. | ||
/// | ||
/// This [represents a resource](https://github.com/WebAssembly/WASI/blob/main/docs/WitInWasi.md#Resources). | ||
type terminal-input = u32 | ||
|
||
// In the future, this may include functions for disabling echoing, | ||
// disabling input buffering so that keyboard events are sent through | ||
// immediately, querying supported features, and so on. | ||
|
||
/// Dispose of the specified terminal-input after which it may no longer | ||
/// be used. | ||
drop-terminal-input: func(this: terminal-input) | ||
} | ||
|
||
interface terminal-output { | ||
/// The output side of a terminal. | ||
/// | ||
/// This [represents a resource](https://github.com/WebAssembly/WASI/blob/main/docs/WitInWasi.md#Resources). | ||
type terminal-output = u32 | ||
|
||
// In the future, this may include functions for querying the terminal | ||
// size, being notified of terminal size changes, querying supported | ||
// features, and so on. | ||
|
||
/// Dispose of the specified terminal-output, after which it may no longer | ||
/// be used. | ||
drop-terminal-output: func(this: terminal-output) | ||
} | ||
|
||
/// An interface providing an optional `terminal-input` for stdin as a | ||
/// link-time authority. | ||
interface terminal-stdin { | ||
use terminal-input.{terminal-input} | ||
|
||
/// If stdin is connected to a terminal, return a `terminal-input` handle | ||
/// allowing further interaction with it. | ||
get-terminal-stdin: func() -> option<terminal-input> | ||
} | ||
|
||
/// An interface providing an optional `terminal-output` for stdout as a | ||
/// link-time authority. | ||
interface terminal-stdout { | ||
use terminal-output.{terminal-output} | ||
|
||
/// If stdout is connected to a terminal, return a `terminal-output` handle | ||
/// allowing further interaction with it. | ||
get-terminal-stdout: func() -> option<terminal-output> | ||
} | ||
|
||
/// An interface providing an optional `terminal-output` for stderr as a | ||
/// link-time authority. | ||
interface terminal-stderr { | ||
use terminal-output.{terminal-output} | ||
|
||
/// If stderr is connected to a terminal, return a `terminal-output` handle | ||
/// allowing further interaction with it. | ||
get-terminal-stderr: func() -> option<terminal-output> | ||
} |
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