2018-08-15 16:34:50 +02:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2018-08-30 20:41:50 +02:00
|
|
|
"fmt"
|
2018-08-15 16:34:50 +02:00
|
|
|
|
|
|
|
"github.com/lbryio/reflector.go/meta"
|
2021-07-20 02:09:14 +02:00
|
|
|
|
2018-08-15 16:34:50 +02:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
var cmd = &cobra.Command{
|
|
|
|
Use: "version",
|
|
|
|
Short: "Print the version",
|
|
|
|
Run: versionCmd,
|
|
|
|
}
|
|
|
|
rootCmd.AddCommand(cmd)
|
|
|
|
}
|
|
|
|
|
|
|
|
func versionCmd(cmd *cobra.Command, args []string) {
|
2020-10-05 20:05:00 +02:00
|
|
|
fmt.Println(meta.VersionString())
|
2018-08-15 16:34:50 +02:00
|
|
|
}
|