-
-
Notifications
You must be signed in to change notification settings - Fork 398
Simplify and add shortcuts for core workflow #3
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
But if you have already set the port for a sketch, it could assume it if no port specified (and give an error if it doesn't find it). And if it finds the port and knows the board on the port it could assume that as well if not specified |
Hi @tigoe, would you like to try the latest cli (0.5.0)? with the |
Thanks, checking now. A couple things: Check globally for a misspelling. You've got "Alredy" and it should be "Already". I plugged in a MKR1000 and tried board list, and I got:
I appear to have solved it by running listall and then running list. From there, I created a new sketch and cd'ed into the sketch to edit it. Then I did this:
What am I missing? I think there is need for a more verbose guide than just the man file. |
OK, after much trial and error, here's the closest I could get to what you describe. I couldn't attach a configuration (port and board) to the sketch because I couldn't figure out how:
|
OK, I got a bit closer. We're still not there, but closer:
|
Closing as resolved. There is a somewhat related feature request for |
The core workflow needs some simplification of its commands with some config additions. I apologize if these are already in the pipeline.
The core workflow for most sketches is something like this:
1, 2, and 4 are generally once-per-sketch tasks, while 2 and 5 are generally done repeatedly.
Right now, it looks like this:
This can get shorter if you use the menus from the GUI as a guide (loosely), and use some shortcut names. For example:
$ arduino-cli sketch new cliSketch
should set the current working directory for the cli, so that cliSketch is auto-expanded in any command that uses it. shortcut: s -n$ arduino-cli sketch
with no parameters could list the current sketch and CWD$ arduino-cli port set /dev/cu.usbmodem14121
could set the working port for the cli, or for this sketch Follows the tools --> port menu behavior shortcut p -s$ arduino-cli port
with no parameters could list the current port$ arduino-cli board set arduino:avr:uno
could set the working board for the cli or for this sketch. Follows the tools --> board menu behavior. Shortcut: b -s.$ arduino-cli board
with no parameters could list the current board$ arduino-cli verify
, with the current working directory set, could mirror the action of the current sketch --> verify/Compile, and be an alias for compile$ arduino-cli upload
, with the current working directory, board, and port set could mirror the action of the current sketch --> verify and uploadIf either
verify
orupload
are called without board or port set, the cli should generate an appropriate error of course.The text was updated successfully, but these errors were encountered: