cli: Add --version command
Metadata
Current evaluation
Merged in snapcraft#1366 as commit be4a92ad7, adding a global --version flag; the fix was expected in Snapcraft 2.32.
Resolution: closed resolved
Reason: PR #1366 was approved and merged as commit be4a92ad7, implementing snapcraft --version and resolving Launchpad bug #1692752.
Evaluated by: mr-cal-bot
No scores available.
Issue body
LP: [#1692752](https://bugs.launchpad.net/snapcraft/+bug/1692752)
Adds a --version flag to the CLI.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#1366 as commit be4a92ad7, adding a global --version flag; the fix was expected in Snapcraft 2.32. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1366 in commit be4a92ad7, adding a --version flag to the Snapcraft CLI and addressing Launchpad bug #1692752. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds a --version CLI flag. Reviewers suggested extracting version logic to prevent circular imports. The author explained import constraints and structured the code to calculate __version__ first, resolving concerns and enabling the merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged, adding a --version CLI flag. Circular import concerns were resolved by calculating __version__ before module imports, ensuring a single source of truth while satisfying click decorator evaluation. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#1746
(confidence 96%)
Later merged PR #1746 added a version subcommand with output matching --version.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1746 cli: add version command | snapcraft | merged | Merged in snapcraft#1746 via commit 0820103ae, adding snapcraft version and snapcraft --version with matching output and tests. | |
| #1692752 snapcraft 2.30 has no version command | snapcraft (launchpad) | closed | Resolved by merged PR canonical/snapcraft#1366 (commit be4a92ad7), adding global snapcraft --version; expected in Snapcraft 2.32. | |
| #1590349 snapcraft should have a 'version' command | snapcraft (launchpad) | closed | Added the version subcommand via snapcore/snapcraft PR #1746 (commit 0820103ae); the change was merged and released in Snapcraft 2.40. | |
| #3626 cli: integrate craft-cli and add version command (CRAFT-730) | snapcraft | merged | Merged into snapcraft 7.0 via commit 0457d6572: integrated craft-cli, added the version command, and retained the legacy CLI fallback for other commands. |