-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shorten minikube version output #7322
Comments
I'm curious where your expectation comes from. Even
I don't mind if someone adds a Anyone else have thoughts here? |
We could also add a It also has a |
I saw that Any of the above suggested solutions work. Thanks for looking into this! |
I think having a non-default |
It's like total anarchy in the cloud native world, not only about the "silent" $ runc --version
runc version 1.0.0-rc10
commit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
spec: 1.0.1-dev
$ containerd --version
containerd github.com/containerd/containerd v1.2.13 7ad184331fa3e55e52b890ea95e65ba581ae3429 $ docker version
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b7f0
Built: Wed Mar 11 01:25:58 2020
OS/Arch: linux/amd64
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b7f0
Built: Wed Mar 11 01:30:32 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
$ minikube kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:50:46Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
|
Like so: $ ./out/minikube version
minikube version: v1.9.0
commit: a1cc3188bb6e0598de68c72f61f6a0fc9e1d2922
$ ./out/minikube version --short
minikube version: v1.9.0
$ ./out/minikube version -o json
{"commit":"a1cc3188bb6e0598de68c72f61f6a0fc9e1d2922","minikubeVersion":"v1.9.0"}
$ ./out/minikube version --output yaml
commit: a1cc3188bb6e0598de68c72f61f6a0fc9e1d2922
minikubeVersion: v1.9.0
Same as |
Looks great! We would be mainly be using the |
The output of
minikube version
is currently:Whereas I expected only the version number:
v1.9.0
Supporting JSON output would also work, if you need to keep the commit information, since that would also allow me to parse the version directly
The text was updated successfully, but these errors were encountered: