Skip to content

Comments

fix: use custom version template to output "git-wt version" instead of "git version"#148

Merged
k1LoW merged 1 commit intomainfrom
fix-version
Feb 17, 2026
Merged

fix: use custom version template to output "git-wt version" instead of "git version"#148
k1LoW merged 1 commit intomainfrom
fix-version

Conversation

@k1LoW
Copy link
Owner

@k1LoW k1LoW commented Feb 17, 2026

closes #138

This pull request makes a minor improvement to the version output of the CLI and updates the related end-to-end test to match the new output format.

  • CLI Output Enhancement:

    • Updated the version output template in rootCmd to include the program name (e.g., git-wt version x.y.z) for clearer identification.
  • Test Update:

    • Adjusted the end-to-end test in e2e/basic_test.go to expect the new version output format (git-wt version).

@k1LoW k1LoW self-assigned this Feb 17, 2026
@k1LoW k1LoW added the bug Something isn't working label Feb 17, 2026
@github-actions
Copy link
Contributor

Code Metrics Report

main (9d7107c) #148 (aaee922) +/-
Coverage 35.3% 35.3% -0.1%
Code to Test Ratio 1:2.2 1:2.2 -0.1
Test Execution Time 18s 16s -2s
Details
  |                     | main (9d7107c) | #148 (aaee922) |  +/-  |
  |---------------------|----------------|----------------|-------|
- | Coverage            |          35.3% |          35.3% | -0.1% |
  |   Files             |             13 |             13 |     0 |
  |   Lines             |           1078 |           1079 |    +1 |
  |   Covered           |            381 |            381 |     0 |
- | Code to Test Ratio  |          1:2.2 |          1:2.2 |  -0.1 |
  |   Code              |           2342 |           2343 |    +1 |
  |   Test              |           5244 |           5244 |     0 |
+ | Test Execution Time |            18s |            16s |   -2s |

Code coverage of files in pull request scope (0.0% → 0.0%)

Files Coverage +/- Status
cmd/root.go 0.0% 0.0% modified

Reported by octocov

@k1LoW k1LoW marked this pull request as ready for review February 17, 2026 01:08
@k1LoW k1LoW merged commit 6eaf3a0 into main Feb 17, 2026
3 checks passed
@k1LoW k1LoW deleted the fix-version branch February 17, 2026 01:09
@github-actions github-actions bot mentioned this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

version output is misleading

1 participant