Skip to content

Commit

Permalink
Merge pull request #308 from carapace-sh/cobra-version
Browse files Browse the repository at this point in the history
emulate cobra version prefix
  • Loading branch information
rsteube authored Oct 27, 2024
2 parents b6402f4 + c008726 commit 84fb4f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ builds:
- darwin
main: ./cmd/carapace-spec
binary: carapace-spec
tags:
- release
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
Expand Down
2 changes: 1 addition & 1 deletion cmd/carapace-spec/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var rootCmd = &cobra.Command{
case "-h", "--help":
cmd.Help()
case "-v", "--version":
cmd.Println(cmd.Version)
cmd.Println("carapace-spec " + cmd.Version)
case "--codegen":
if len(args) < 2 {
return errors.New("flag needs an argument: --codegen")
Expand Down

0 comments on commit 84fb4f9

Please sign in to comment.