bytecodealliance / bytecodealliance/component-docs

Remove command component from Calculator Tutorial

Open
#236 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
137
Forks
88
Avg merge
5d 12h
Merged PRs (30d)
4

Description

Instead of composing with a command component, the `calculator` world could export `wasi:cli/run` itself:
```
package docs:calculator@0.1.0;

interface calculate {
enum op {
add,
}
eval-expression: func(op: op, x: u32, y: u32) -> u32;
}

world calculator {
export calculate;
import docs:adder/add@0.1.0;
}

world app {
import calculate;
export wasi:cli/run; <--- suggested addition
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.