← Back to issue list

Remove the default command

View original Github issue

Metadata

Project
craft-cli
Number
#361
Type
issue
State
open
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Maintainer task to remove the Dispatcher's default_command/allow_default_command support (added for Snapcraft compat). Feature still present in code; removal gated on Snapcraft 10 (core28) release. No labels, 0 comments.

Suggested action: keep open

Reason: The body explicitly gates removal on an external dependency: 'Craft-cli can fully drop support when Snapcraft 10 (core28) is released.' The feature is still live in craft_cli/dispatcher.py (default_command/allow_default_command params and the 'Running snapcraft without a command' error path), so the task remains valid and not obsolete. It was authored by a maintainer as a known task, so it is already assessed rather than untriaged.

Impact: 45 Quick Win: 20.25 Staleness: 55 Complexity: 55 Confidence: 80 Support Request: 0

Issue body

### What needs to get done Remove support for the dispatcher's default command. ### Why it needs to get done A default command was added to craft-cli to maintain compatibility with Snapcraft. Default commands aren't a good UX practice and no other craft app supports them. Snapcraft 9 dropped support for the default command, but craft-cli still needs to provide a helpful error message: ``` Running snapcraft without a command isn't supported. Use 'snapcraft pack' instead. ``` Craft-cli can fully drop support when Snapcraft 10 (core28) is released, as this version of Snapcraft will do what the other apps do (show the help text).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20.25
Staleness: 55
Complexity: 55
Confidence: 80
Support Request: 0
keep open Maintainer task to remove the Dispatcher's default_command/allow_default_command support (added for Snapcraft compat). Feature still present in code; removal gated on Snapcraft 10 (core28) release. No labels, 0 comments.
qwen/qwen3.6-35b-a3b
Staleness: 65
Complexity: 20
Confidence: 75
Support Request: 10
needs triage Issue requests removing default command support from craft-cli, contingent on Snapcraft 10 release. No maintainer response or labels. Awaiting triage.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 20
Confidence: 85
Support Request: 0
needs triage Unlabelled maintainer request to remove craft-cli default command support, currently blocked pending Snapcraft 10 release. No comments or labels assigned.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 20
Confidence: 85
Support Request: 0
needs triage Remove craft-cli dispatcher default command support. Originally added for Snapcraft compatibility, it is now obsolete since Snapcraft 10 shows help text for missing commands. Open with zero comments, awaiting triage and assignment.

Update history

No update history recorded yet.

Related work

  • Related To: craft-cli#422 (confidence 70%)

    PR 'feat: error on default command' added the deprecation/error path this removal task builds on; it is the most recent related work on the default-command feature.

Related issues

Issue Project State Summary Similarity
#422 feat: error on default command craft-cli merged Merged. Adds opt-in allow_default_command to Dispatcher for default command support without breaking existing apps. Approved by three reviewers, passed CI, and unblocks downstream snapcraft.
76%
#5673 Remove default command, `snapcraft` snapcraft closed Closed and tracked via Jira. The default snapcraft command, deprecated in v8.11, remains scheduled for removal in Snapcraft 9. No pull request was merged.
74%