← Back to issue list

cli: integrate craft-cli and add version command (CRAFT-730)

View original Github issue

Metadata

Project
snapcraft
Number
#3626
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged after integrating craft-cli and adding a version command, falling back to the legacy implementation for other functionality. Passed CI, approved, and merged. Help output remains handled by the legacy system until fully updated.

Suggested action:

No scores available.

Issue body

Handle message output and command line arguments parsing using craft-cli. Implement the `version` command and fall back to the legacy snapcraft implementation to handle all other functionality. - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged after integrating craft-cli and adding a version command, falling back to the legacy implementation for other functionality. Passed CI, approved, and merged. Help output remains handled by the legacy system until fully updated.
qwen3.6-35b-a3b-mtp-q6 Merged into snapcraft/7.0. Integrated craft-cli for argument parsing and output, added a version command, and retained legacy snapcraft fallback for other functionality. Author noted a follow-up regarding help command fallback behavior.
qwen3.6-35b-a3b-mtp-q6 Merged into snapcraft/7.0. Integrated craft-cli for CLI parsing and output, added a version command, and retained legacy snapcraft fallback. Author noted --help should defer to legacy implementation until new help is complete.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1746 cli: add version command snapcraft merged Merged after reviewer approval and passing CI. Adds a CLI version command to snapcraft, resolving feedback on click message parameters, type checking, and whitespace before final merge.
74%
#3682 cli: fix help command legacy fallback snapcraft merged Merged fix for the CLI help command legacy fallback. Handles craft-cli's ProvideHelpException to standardize help output. Approved, passed CI, and achieved 100% diff coverage before merging into the 7.0 branch.
72%
#3735 commands: help for all legacy commands snapcraft merged Merged implementation adding help text for all legacy commands via passthrough. Approved, passed CI, and resolves CRAFT-986 through CRAFT-991. Minor coverage decrease noted but accepted.
72%
#577 Craft cli integration charmcraft merged Merged the Craft CLI integration authored by maintainer facundobatista. Approved by one reviewer, the change modifies 45 files with 922 additions and 1358 deletions, successfully implementing command-line interface support.
71%
#635 Use all functionality from craft-cli (CRAFT-710). charmcraft merged Merged after approval. Integrated all craft-cli functionality, netting a reduction of 1724 lines across 11 files. Resolves CRAFT-710.
71%