canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 15 forks source link

Allow the application to choose the order of commands within a command group #195

Closed lengau closed 10 months ago

lengau commented 10 months ago

What needs to get done

Provide a command group configuration that keeps the order of the command names in the created group rather than alphabetising them.

Why it needs to get done

For most command groups, alphabetical by command name is completely sensible. However, some command groups, such as lifecycle commands, have a distinct order. In these cases, we should be able to retain the order.