feat(version): add --tag for version command by yjaw · Pull Request #1819 · commitizen-tools/commitizen

Description

Add --tag flag to cz version command to output version with
configured tag_format applied (e.g., v1.2.3 instead of 1.2.3).

  • Add --tag option to CLI arguments
  • Implement tag formatting using TagRules.normalize_tag()
  • Add error handling for invalid option combinations
  • Update tests to match new error messages

Closes #1765

Checklist

Code Changes

  • [o] Add test cases to all the changes you introduce
  • [o] Run uv run poe all locally to ensure this change passes linter check and tests
  • [o] Manually test the changes:
  • [o] Verify the feature/bug fix works as expected in real-world scenarios
  • [o] Test edge cases and error conditions
  • [o] Ensure backward compatibility is maintained
  • Document any manual testing steps performed
  • Update the documentation for the changes

Steps to Test This Pull Request

Additional Context