From 5f93b43cd687931659f1cd491d5f47fa7147e2d7 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Tue, 3 Mar 2026 22:27:49 +0000 Subject: [PATCH] refactor(changelog): change version flag shorthand to uppercase V Update the shorthand from "v" to "V" in the changelog command and adjust the corresponding test assertion. --- cmd/changelog.go | 2 +- cmd/changelog_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/changelog.go b/cmd/changelog.go index c992c7e..843ee20 100644 --- a/cmd/changelog.go +++ b/cmd/changelog.go @@ -21,7 +21,7 @@ var changelogCmd = &cobra.Command{ func init() { changelogCmd.Flags().String("since", "", "Start from this tag/ref (default: previous tag)") - changelogCmd.Flags().StringP("version", "v", "", "Override version for header (default: latest git tag)") + changelogCmd.Flags().StringP("version", "V", "", "Override version for header (default: latest git tag)") changelogCmd.Flags().Bool("stdout", false, "Print ONLY the new section (ideal for Gitea release notes)") changelogCmd.Flags().Bool("commit", false, "After writing, remind to run grokkit commit") rootCmd.AddCommand(changelogCmd) diff --git a/cmd/changelog_test.go b/cmd/changelog_test.go index a4f71b6..71b243a 100644 --- a/cmd/changelog_test.go +++ b/cmd/changelog_test.go @@ -95,7 +95,7 @@ func TestChangelogCmd_Flags(t *testing.T) { versionFlag := changelogCmd.Flags().Lookup("version") require.NotNil(t, versionFlag) - assert.Equal(t, "v", versionFlag.Shorthand) + assert.Equal(t, "V", versionFlag.Shorthand) commitFlag := changelogCmd.Flags().Lookup("commit") require.NotNil(t, commitFlag)