OSDN Git Service

rename vapord (#277)
[bytom/vapor.git] / cmd / vaporcli / commands / version.go
1 package commands
2
3 import (
4         "runtime"
5
6         "github.com/spf13/cobra"
7         jww "github.com/spf13/jwalterweatherman"
8
9         "github.com/vapor/version"
10 )
11
12 var versionCmd = &cobra.Command{
13         Use:   "version",
14         Short: "Print the version number of vaporcli",
15         Run: func(cmd *cobra.Command, args []string) {
16                 jww.FEEDBACK.Printf("vaporcli v%s %s/%s\n", version.Version, runtime.GOOS, runtime.GOARCH)
17         },
18 }