Skip to content

Commit

Permalink
feat: improve version print
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Jan 15, 2025
1 parent 36a6791 commit 96f693c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func init() {
oldRun := rootCmd.Run
rootCmd.Run = func(cmd *cobra.Command, args []string) {
if v, _ := cmd.Flags().GetBool("version"); v {
fmt.Printf("casbin-go-cli version: %s\n", Version)
fmt.Printf("casbin version: %s\n", CasbinVersion)
fmt.Printf("casbin-go-cli %s\n", Version)
fmt.Printf("casbin %s\n", CasbinVersion)
return
}
if oldRun != nil {
Expand Down

0 comments on commit 96f693c

Please sign in to comment.