Make "kubeadm version" json format output more readable.
This commit is contained in:
@@ -67,7 +67,7 @@ func RunVersion(out io.Writer, cmd *cobra.Command) error {
|
||||
}
|
||||
fmt.Fprintln(out, string(y))
|
||||
case "json":
|
||||
y, err := json.Marshal(&v)
|
||||
y, err := json.MarshalIndent(&v, "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user