Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unstable exit-with-code function #44

Merged
merged 7 commits into from
Aug 1, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wit/exit.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
interface exit {
/// Exit the current instance and any linked instances.
exit: func(status: result);

/// Exit the current instance and any linked instances, reporting the
/// specified status code to the host.
dicej marked this conversation as resolved.
Show resolved Hide resolved
///
/// The meaning of the code depends on the context, with 0 usually meaning
/// "success", and other values indicating various types of failure.
@unstable(feature = exit-with-code)
exit-with-code: func(status-code: u8);
}