mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-23 15:04:41 -05:00
23 lines
354 B
Go
Executable File
23 lines
354 B
Go
Executable File
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/nitezs/sub2sing-box/constant"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print version",
|
|
Long: "Print version",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("version: " + constant.Version)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(versionCmd)
|
|
}
|