File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ package cmd
2
2
3
3
import (
4
4
"fmt"
5
+ "runtime"
5
6
6
7
"github.com/jetstack/preflight/pkg/client"
7
8
"github.com/jetstack/preflight/pkg/version"
8
9
)
9
10
10
11
func printVersion (verbose bool ) {
11
- fmt .Println ("Preflight version: " , version .PreflightVersion , version . Platform )
12
+ fmt .Println ("Preflight version: " , version .PreflightVersion , runtime . GOOS + "/" + runtime . GOARCH )
12
13
if verbose {
13
14
fmt .Println (" Commit: " , version .Commit )
14
15
fmt .Println (" Built: " , version .BuildDate )
Original file line number Diff line number Diff line change @@ -13,6 +13,3 @@ var BuildDate string
13
13
14
14
// GoVersion is the go version that was used to compile this
15
15
var GoVersion string
16
-
17
- // Platform is the target platform this was compiled for
18
- var Platform string
You can’t perform that action at this time.
0 commit comments