{"empty template",&printers.PrintOptions{OutputFormatType:"template",AllowMissingKeys:false},fmt.Errorf("template format specified but no template given")},
{"bad templatefile",&printers.PrintOptions{OutputFormatType:"templatefile",AllowMissingKeys:false},fmt.Errorf("templatefile format specified but no template file given")},
{"bad templatefile",&printers.PrintOptions{OutputFormatType:"templatefile",AllowMissingKeys:false},fmt.Errorf("template format specified but no template given")},
{"unknown format",&printers.PrintOptions{OutputFormatType:"anUnknownFormat",OutputFormatArgument:"",AllowMissingKeys:false},fmt.Errorf("output format \"anUnknownFormat\" not recognized")},
c.Flags().StringVar(f.TemplateArgument,"template",*f.TemplateArgument,"Template string or path to template file to use when --output=jsonpath, --output=jsonpath-file.")
c.MarkFlagFilename("template")
}
iff.AllowMissingKeys!=nil{
c.Flags().BoolVar(f.AllowMissingKeys,"allow-missing-template-keys",*f.AllowMissingKeys,"If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.")
}
}
// NewJSONPathPrintFlags returns flags associated with
c.Flags().StringVar(f.TemplateArgument,"template",*f.TemplateArgument,"Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].")
c.MarkFlagFilename("template")
}
iff.AllowMissingKeys!=nil{
c.Flags().BoolVar(f.AllowMissingKeys,"allow-missing-template-keys",*f.AllowMissingKeys,"If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.")
}
}
// NewKubeTemplatePrintFlags returns flags associated with
c.Flags().StringVar(f.TemplateArgument,"template",*f.TemplateArgument,"Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].")
c.MarkFlagFilename("template")
}
iff.AllowMissingKeys!=nil{
c.Flags().BoolVar(f.AllowMissingKeys,"allow-missing-template-keys",*f.AllowMissingKeys,"If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.")
}
}
// NewGoTemplatePrintFlags returns flags associated with