Skip to content

Commit

Permalink
show version by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AshutoshPatole committed Aug 13, 2024
1 parent 68199b3 commit 136cd1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ builds:
- linux
- windows
- darwin
ldflags: "-X main.version={{ .Version }}"

archives:
- format: tar.gz
Expand Down
5 changes: 1 addition & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ It simplifies the management of SSH profiles with commands to register users, im
}
},
Run: func(cmd *cobra.Command, args []string) {
if showVersion {
fmt.Println("Version:", version)
return
}
fmt.Println("Version:", version)
},
}

Expand Down

0 comments on commit 136cd1a

Please sign in to comment.