mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-06-18 11:03:18 +08:00
fix: version cmd
This commit is contained in:
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sub2sing-box/constant"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@ -11,7 +12,7 @@ var versionCmd = &cobra.Command{
|
||||
Short: "Print version",
|
||||
Long: "Print version",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("version: " + RootCmd.Version)
|
||||
fmt.Println("version: " + constant.Version)
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user