Make command groups more configurable
Metadata
Current evaluation
Closed as not planned: the requested command-group override was rejected because lifecycle and other default groups are now required for Craft applications.
Resolution: closed not a bug
Reason: Maintainer lengau closed the request after determining that default command groups are required for Craft applications; no override PR or commit was recorded.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
Provide an easy way for the app developer to override the default command groups. (e.g. either by making the default command group getters Application class methods or by offering a way to provide override command groups on `__init__`)
See: https://github.com/canonical/charmcraft/pull/1340#discussion_r1370154812
### Why it needs to get done
Right now the `lifecycle` and `other` command groups are created by default using `craft-application` command groups. If you need to override those groups (like Charmcraft does), it's possible but not particularly pretty.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Closed as not planned: the requested command-group override was rejected because lifecycle and other default groups are now required for Craft applications. | |
| stealth/space-bunny-alpha | — | closed not a bug | Closed without the requested override mechanism: the maintainer said default command groups were now required for craft applications. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. Maintainer noted that default command groups are now required for craft applications, making the requested override mechanism unnecessary. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Default command groups are now required for craft applications, making configurable overrides unnecessary. The request was rejected due to this architectural change. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-application#147
(confidence 60%)
Extensible-commands work addressed related command registration needs.
-
Related To:
canonical/craft-application#545
(confidence 55%)
Later work merged commands within groups and provides context for the command-group architecture.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4911 Refactor `command_group` usage | snapcraft | closed | Migrated command groups to craft_cli.CommandGroup and removed the application override in commit e21b65be7 via PR #4934. |