You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,17 @@ world root {
34
34
35
35
The resulting composed component will therefore only have the exported `greet` function originally from the `greeter` component.
36
36
37
-
## `wac encode`
37
+
## `wac compose`
38
38
39
-
`wac` can be used as a CLI tool. The `wac encode` command takes a wac script as input which defines how two components are composed together.
39
+
`wac` can be used as a CLI tool. The `wac compose` command takes a wac script as input which defines how two components are composed together.
40
40
41
41
Running the following command should produce a new component that is the composition of the `hello` and `greeter` components.
42
42
43
43
```bash
44
-
wac encode script.wac -o composed.wasm
44
+
wac compose script.wac -o composed.wasm
45
45
```
46
46
47
-
*Note*: `wac encode` expects to find any input components inside of a `deps` folder in a directory named after the namespace part of the input component's name (however, this is configurable with the `--deps-dir` option). In our example, the wac script uses the `example:greeter` and `example:hello` input components so `wac encode` expects to find those components in the `deps/example` directory.
47
+
*Note*: `wac compose` expects to find any input components inside of a `deps` folder in a directory named after the namespace part of the input component's name (however, this is configurable with the `--deps-dir` option). In our example, the wac script uses the `example:greeter` and `example:hello` input components so `wac compose` expects to find those components in the `deps/example` directory.
0 commit comments