2020-01-02 06:28:30 -08:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
2020-03-31 20:53:49 -07:00
|
|
|
"github.com/zcash/lightwalletd/common"
|
2020-01-02 06:28:30 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
// versionCmd represents the version command
|
|
|
|
var versionCmd = &cobra.Command{
|
|
|
|
Use: "version",
|
|
|
|
Short: "Dispaly lightwalletd version",
|
|
|
|
Long: `Dispaly lightwalletd version.`,
|
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
2020-03-31 20:53:49 -07:00
|
|
|
fmt.Println("lightwalletd version", common.Version)
|
2020-01-02 06:28:30 -08:00
|
|
|
},
|
|
|
|
}
|