func CobraCommand() *cobra.Command {
	return CobraCommandWithOptions(CobraOptions{})
}
CobraCommand returns a command used to print version information.
package version
import (
	"encoding/json"
	"errors"
	"fmt"
	"strings"
	"github.com/ghodss/yaml"
	"github.com/spf13/cobra"
)
type Version struct {
	ClientVersion    *BuildInfo   `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"`
	MeshVersion      *MeshInfo    `json:"meshVersion,omitempty" yaml:"meshVersion,omitempty"`
	DataPlaneVersion *[]ProxyInfo `json:"dataPlaneVersion,omitempty" yaml:"dataPlaneVersion,omitempty"`
}
type (
	GetRemoteVersionFunc func() (*MeshInfo, error)
	GetProxyVersionFunc  func() (*[]ProxyInfo, error)
)
type CobraOptions struct {
	GetRemoteVersion GetRemoteVersionFunc
	GetProxyVersions GetProxyVersionFunc
}