hybridgroup / mechanoid

Mechanoid is a framework for WebAssembly applications on embedded systems and IoT devices.
https://mechanoid.io
Apache License 2.0
174 stars 8 forks source link

mecha: extend build command with project/modules subcommands and flags #26

Closed deadprogram closed 6 months ago

deadprogram commented 6 months ago

This PR improves the mecha CLI by extending the implementation of the build command to include project and modules subcommands. It also add flags by reusing the same flags as the flash command is already using.

deadprogram commented 6 months ago

Why is this needed?

Needed if you want to build the binary but not actually flash the device right now.

How to use the code in this PR:

mecha build

This builds the modules in the current project. Same as the 0.1.x version of the command.

mecha build modules

This builds only the modules in the current project.

mecha build project

This builds only the application in the current project.

deadprogram commented 6 months ago

Thanks @orsinium now merging.