2017-09-11 16:46:25 +05:30
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"elyby/minecraft-skinsystem/bootstrap"
|
|
|
|
"runtime"
|
|
|
|
)
|
|
|
|
|
|
|
|
var versionCmd = &cobra.Command{
|
|
|
|
Use: "version",
|
2018-02-15 02:19:22 +05:30
|
|
|
Short: "Show the Chrly version information",
|
2017-09-11 16:46:25 +05:30
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
fmt.Printf("Version: %s\n", bootstrap.GetVersion())
|
|
|
|
fmt.Printf("Go version: %s\n", runtime.Version())
|
|
|
|
fmt.Printf("OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH)
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
RootCmd.AddCommand(versionCmd)
|
|
|
|
}
|