| ... | @@ -11221,8 +11221,8 @@ pub fn main() !void { | ... | @@ -11221,8 +11221,8 @@ pub fn main() !void { |
| 11221 | } | 11221 | } |
| 11222 | } | 11222 | } |
| 11223 | {#code_end#} | 11223 | {#code_end#} |
| 11224 | {#shell_samp#}$ wasmtime args.wasm 123 hello | 11224 | {#shell_samp#}$ wasmtime wasi_args.wasm 123 hello |
| 11225 | 0: args.wasm | 11225 | 0: wasi_args.wasm |
| 11226 | 1: 123 | 11226 | 1: 123 |
| 11227 | 2: hello{#end_shell_samp#} | 11227 | 2: hello{#end_shell_samp#} |
| 11228 | <p>A more interesting example would be extracting the list of preopens from the runtime. | 11228 | <p>A more interesting example would be extracting the list of preopens from the runtime. |
| ... | @@ -11247,7 +11247,7 @@ pub fn main() !void { | ... | @@ -11247,7 +11247,7 @@ pub fn main() !void { |
| 11247 | } | 11247 | } |
| 11248 | } | 11248 | } |
| 11249 | {#code_end#} | 11249 | {#code_end#} |
| 11250 | {#shell_samp#}$ wasmtime --dir=. preopens.wasm | 11250 | {#shell_samp#}$ wasmtime --dir=. wasi_preopens.wasm |
| 11251 | 0: stdin | 11251 | 0: stdin |
| 11252 | 1: stdout | 11252 | 1: stdout |
| 11253 | 2: stderr | 11253 | 2: stderr |