tpmccallum opened PR #10544 from tpmccallum:tpm/review_invoke_wave_changes to bytecodealliance:main:
This cleans up the CLI output and docs in relation to some review comments from Alex; thanks, Alex.
Below are a few commands, for your convenience, that I ran using the new code (just so you get a sense of the output):
Calling an exported function of a module:
$ wasmtime run --invoke 'initialize' wasm_mod_test.wasm initialize() was called!$ wasmtime run --invoke initialize wasm_mod_test.wasm initialize() was called!Calling an exported function of a component:
$ wasmtime run --invoke 'get-answer()' wasm_answer.wasm 42Example of not using WAVE on purpose (when calling exported function of component) so that the error appears:
$ wasmtime run --invoke 'get-answer' wasm_answer.wasm Error: failed to run main module `wasm_answer.wasm` Caused by: 0: Failed to parse invoke 'get-answer': See https://docs.wasmtime.dev/cli-options.html#run for syntax 1: unexpected end of input at 10..10
tpmccallum requested wasmtime-core-reviewers for a review on PR #10544.
tpmccallum requested fitzgen for a review on PR #10544.
tpmccallum requested wasmtime-default-reviewers for a review on PR #10544.
tpmccallum edited PR #10544.
pchickey merged PR #10544.
Last updated: Dec 06 2025 at 06:05 UTC