particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

fix: [sc-127227] Support renamed assets #726

Closed monkbroc closed 6 months ago

monkbroc commented 6 months ago

Story details: https://app.shortcut.com/particle/story/127227

If an asset is renamed but not otherwise modified, the CLI won't flash the newly named asset to the device, leading to the device being in safe mode.

Steps to test:

I made an additional change to avoid resetting the device an additional when flashing assets in normal mode. The 2 scenarios are either that the asset is flashed, then the device reboots on its own, or the asset is skipped so an addtional reset causes the application to restart one more time than necessary.

Hugo, can you think of a downside to this change?