...

Text file src/github.com/tetratelabs/wazero/examples/cli/README.md

Documentation: github.com/tetratelabs/wazero/examples/cli

     1## CLI example
     2
     3This example shows a simple CLI application compiled to WebAssembly and
     4executed with the wazero CLI.
     5
     6```bash
     7$ go run github.com/tetratelabs/wazero/cmd/wazero run testdata/cli.wasm 3 4
     8```
     9
    10The wazero CLI can run stand-alone Wasm binaries, providing access to any
    11arguments passed after the path. The Wasm binary reads arguments and otherwise
    12operates on the host via WASI functions.

View as plain text