Skip to content

Commit

Permalink
Add custom-columns to the template flag
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Dec 2, 2015
1 parent d8c1a9a commit 601faeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/kubectl/cmd/util/printing.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ func PrinterForCommand(cmd *cobra.Command) (kubectl.ResourcePrinter, bool, error
outputFormat = "template"
}

templateFormat := []string{"go-template=", "go-template-file=", "jsonpath=", "jsonpath-file="}
templateFormat := []string{
"go-template=", "go-template-file=", "jsonpath=", "jsonpath-file=", "custom-columns=", "custom-columns-file=",
}
for _, format := range templateFormat {
if strings.HasPrefix(outputFormat, format) {
templateFile = outputFormat[len(format):]
Expand Down

0 comments on commit 601faeb

Please sign in to comment.