canonical / canonical/craft-cli

Remove the default command

Open
#361 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16
Forks
27
Avg merge
2d 1h
Merged PRs (30d)
12

Description

### 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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.