Skip to content

Commit

Permalink
Add OS/Arch information in the krew version CLI output to help with d…
Browse files Browse the repository at this point in the history
…iagnostics.
  • Loading branch information
tony-yang committed Jan 30, 2020
1 parent 5ceeae5 commit 6f53589
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/krew/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

"github.com/spf13/cobra"

"sigs.k8s.io/krew/internal/installation"
"sigs.k8s.io/krew/internal/version"
"sigs.k8s.io/krew/pkg/constants"
)
Expand Down Expand Up @@ -46,6 +47,7 @@ Remarks:
{"IndexPath", paths.IndexPath()},
{"InstallPath", paths.InstallPath()},
{"BinPath", paths.BinPath()},
{"OS/Arch", installation.OSArch().String()},
}
return printTable(os.Stdout, []string{"OPTION", "VALUE"}, conf)
},
Expand Down

0 comments on commit 6f53589

Please sign in to comment.