Skip to content

feat(cli): add cz --version back and add cz --report to separate them from cz version#1798

Open
bearomorphism wants to merge 2 commits intomasterfrom
feat-version-report
Open

feat(cli): add cz --version back and add cz --report to separate them from cz version#1798
bearomorphism wants to merge 2 commits intomasterfrom
feat-version-report

Conversation

@bearomorphism
Copy link
Copy Markdown
Collaborator

Description

As we are extending the functionality of cz version, I think it would be better to extract the --commitizen and --report from cz version.

Relate #1785

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.11%. Comparing base (b4f4209) to head (bffea3d).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1798      +/-   ##
==========================================
+ Coverage   98.10%   98.11%   +0.01%     
==========================================
  Files          61       61              
  Lines        2748     2763      +15     
==========================================
+ Hits         2696     2711      +15     
  Misses         52       52              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bearomorphism bearomorphism force-pushed the feat-version-report branch 2 times, most recently from 072aa76 to a42800c Compare February 6, 2026 01:57
@bearomorphism
Copy link
Copy Markdown
Collaborator Author

Will deprecate cz version --report and cz version --commitizen

@bearomorphism bearomorphism marked this pull request as draft February 6, 2026 02:50
@woile
Copy link
Copy Markdown
Member

woile commented Feb 8, 2026

Good. Remember that the existing ones, under cz version, we don't remove until all the features are out 👍🏻

@bearomorphism bearomorphism force-pushed the feat-version-report branch from a42800c to fa9331c Compare May 3, 2026 11:33
@bearomorphism bearomorphism marked this pull request as ready for review May 3, 2026 11:40
Replace raw sys.argv checks with proper argparse-based handling by making
subcommands optional. This fixes three issues:

- cz version --report was intercepted by the top-level handler instead of
  routing to the Version command
- cz -v did not work despite being registered as a shorthand for --version
- cz version --report and cz version --commitizen now emit deprecation
  warnings directing users to use cz --report and cz --version instead

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants