WebAssembly / wasi-cli

Command-Line Interface (CLI) World for WASI
60 stars 11 forks source link

add unstable `exit-with-code` function #44

Closed dicej closed 3 weeks ago

dicej commented 1 month ago

Whereas the existing exit function only accepts a result parameter (i.e. binary success or failure), this function allows the instance to report any status code from 0 to 255 to the host, with 0 usually meaning "success" and other values having their own meaning depending on the context.

Fixes #11