Skip to content

Commit

Permalink
Show kind while getting "all"
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriar committed May 8, 2017
1 parent 2bcde0b commit 8e258ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,12 @@ func RunGet(f cmdutil.Factory, cmd *cobra.Command, out, errOut io.Writer, args [
}

showKind := cmdutil.GetFlagBool(cmd, "show-kind")
if cmdutil.MustPrintWithKinds(objs, infos, nil, printAll) {
if printAll {
showKind = true
} else {
if cmdutil.MustPrintWithKinds(objs, infos, nil, printAll) {
showKind = true
}
}

var lastMapping *meta.RESTMapping
Expand Down

0 comments on commit 8e258ea

Please sign in to comment.