Files
wazero/examples/cli
Crypt Keeper 75aa6b2a6e examples: updates to the latest SDKs (#1169)
This updates our examples to the latest SDKs as particularly this can
help reveal issues around fan-out stats.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-02-27 09:05:48 +08:00
..

CLI example

This example shows a simple CLI application compiled to WebAssembly and executed with the wazero CLI.

$ go run github.com/tetratelabs/wazero/cmd/wazero run testdata/cli.wasm 3 4

The wazero CLI can run stand-alone Wasm binaries, providing access to any arguments passed after the path. The Wasm binary reads arguments and otherwise operates on the host via WASI functions.