|
|
@@ -18,7 +18,6 @@ import (
|
|
|
"fmt"
|
|
|
|
|
|
"github.com/coreos/etcd/version"
|
|
|
- "github.com/coreos/go-semver/semver"
|
|
|
"github.com/spf13/cobra"
|
|
|
)
|
|
|
|
|
|
@@ -33,12 +32,5 @@ func NewVersionCommand() *cobra.Command {
|
|
|
|
|
|
func versionCommandFunc(cmd *cobra.Command, args []string) {
|
|
|
fmt.Println("etcdctl version:", version.Version)
|
|
|
- ver, err := semver.NewVersion(version.Version)
|
|
|
- var vs string
|
|
|
- if err == nil {
|
|
|
- vs = fmt.Sprintf("%d.%d", ver.Major, ver.Minor)
|
|
|
- } else {
|
|
|
- vs = "unknown"
|
|
|
- }
|
|
|
- fmt.Println("API version:", vs)
|
|
|
+ fmt.Println("API version:", version.APIVersion)
|
|
|
}
|