Commit 3f0f2b34 authored by Chin-Ya Huang's avatar Chin-Ya Huang Committed by Brad Davidson

Show go version when executes with --version.

parent 87a43c69
......@@ -3,6 +3,7 @@ package cmds
import (
"fmt"
"os"
"runtime"
"github.com/rancher/k3s/pkg/version"
"github.com/sirupsen/logrus"
......@@ -33,6 +34,7 @@ func NewApp() *cli.App {
app.Version = fmt.Sprintf("%s (%s)", version.Version, version.GitCommit)
cli.VersionPrinter = func(c *cli.Context) {
fmt.Printf("%s version %s\n", app.Name, app.Version)
fmt.Printf("go version %s\n", runtime.Version())
}
app.Flags = []cli.Flag{
DebugFlag,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment