Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork436
Create a compile+upload combo command#326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
CLAassistant commentedAug 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
masci left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Approach is neat and readable 👌, code LGTM.
We'll need to pay attention to ensure flags shared between the two commands don't go out of sync but at this stage IMO it's better a little duplication than an overly complex solution.
mastrolinux left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Just added a couple of suggestions, I do like the general idea and the Go part.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
zmoog commentedAug 26, 2019
We're closing this PR to ship the compile+upload combo and the suggested improvements to the integration tests will be addressed in the dedicated PR (I will link it here as soon created). |
This PR adds something similar to the IDE’s “compile on upload” feature.
Idea
The intended purpose is to simplify the workflow of the board user and offer a single-step command to compile the sketch and upload to the board.
For example:
Design & Implementation
I've tried to reuse the existing implementation of both compile and upload command composing them in the Cobra commands.
Since I'm new to both the arduino-cli project and the Go programming language any feedback will be really, really (I mean it!) welcome.