refactor(changelog): change version flag shorthand to uppercase V
All checks were successful
CI / Test (push) Successful in 33s
CI / Lint (push) Successful in 27s
CI / Build (push) Successful in 21s
Release / Create Release (push) Successful in 37s

Update the shorthand from "v" to "V" in the changelog command and adjust the corresponding test assertion.
This commit is contained in:
Greg Gauthier 2026-03-03 22:27:49 +00:00
parent 162504fa88
commit 5f93b43cd6
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)