mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 00:31:00 +00:00
Merge pull request #15210 from brendandburns/docs
Auto commit by PR queue bot
This commit is contained in:
commit
6815cbf742
@ -102,7 +102,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):]
|
||||
|
Loading…
Reference in New Issue
Block a user