robgonnella / ardi

Ardi is a command-line tool that helps you manage arduino projects!
GNU General Public License v3.0
12 stars 1 forks source link

CONSIDER a command like "ardi compile-and-upload"? #87

Closed egnor closed 2 years ago

egnor commented 3 years ago

I continue to use and love Ardi!! 🙏 I am recommending it to everyone!

A very very common use case is to run ardi compile followed by ardi upload. If one is not careful, it's easy to forget the compile step, or not notice a failure, and upload an old firmware image from a previous compilation.

Possibilities:

robgonnella commented 3 years ago

Thanks for the continued support!! ❤️

I like the idea of adding a compile-and-upload command while keeping the upload command pure. This way the intent is always clear. I've already started on a draft of this approach.

I'll look into making the upload command complain if the firmware image is older than the source .ino but I'll refrain from failing so as not to make assumptions about what the user intends.

Once again thank you for the awesome suggestions!

robgonnella commented 3 years ago

Done and released in v2.4.0 ! I've also added the command aliases to the docs and the help menus. For example ardi compile-and-upload can also be called via ardi deploy