version.go 369 Bytes
Newer Older
ElyKar's avatar
ElyKar committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cmd

import (
	"dfss"
	"fmt"
	"runtime"

	"github.com/spf13/cobra"
)

// versionCmd represents the version command
var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print dfss protocol version",
	Long:  "Print dfss protocol version",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("v"+dfss.Version, runtime.GOOS, runtime.GOARCH)
	},
}