Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 71 forks source link

Deprecate duplicate commands #559

Closed beandrad closed 2 years ago

beandrad commented 2 years ago

Some commands can be called in two different ways (for instance, iotedgedev init and iotedgev solution init). Eventually, this duplication should be removed to simplify the tool. This is a breaking change, though; so before implementing it in the next major release, we should add a deprecation notice in such commands. This deprecation notice should be added to the help message and printed when the command is run. This can be done by setting deprecated=True in the click.Command() decorator (see documentation).

Note that the reason for this duplication is that the commands are added to two click groups (main and solution). The commands that should be deprecated are the ones corresponding to the main group.

shiroyama commented 2 years ago

@beandrad Let me take this issue!