WebAssembly / wasi-cli

Command-Line Interface (CLI) World for WASI
60 stars 11 forks source link

Rename things to clarify commands, and add a reactor interface. #4

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

Renae the "cli" interface and wit file to "command". With the new deps layout, this means users see cli/command rather than cli/cli.

Accompanying that change, rename the "command" function to "main". This is not the C/C++ or other language main function, but it is the component-model main function, and at that scope I think calling it "main" makes sense.

Also, add a "reactor" interface, which is the same as the "command" interface, except without the "main" function.

sunfishcode commented 1 year ago

Marking as a draft for now as this will requiring updating the wit-abi-up-to-date check to handle multiple worlds.

sunfishcode commented 1 year ago

On second thought, let's leave out the reactor world for now so that we can merge this.