Add some docs to the template format.

This commit is contained in:
Brendan Burns
2015-02-12 18:29:11 -08:00
parent 4d141025da
commit f63cf05d21
2 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ func AddPrinterFlags(cmd *cobra.Command) {
cmd.Flags().StringP("output", "o", "", "Output format. One of: json|yaml|template|templatefile.")
cmd.Flags().String("output-version", "", "Output the formatted object with the given version (default api-version).")
cmd.Flags().Bool("no-headers", false, "When using the default output, don't print headers.")
cmd.Flags().StringP("template", "t", "", "Template string or path to template file to use when -o=template or -o=templatefile.")
cmd.Flags().StringP("template", "t", "", "Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]")
}
// OutputVersion returns the preferred output version for generic content (JSON, YAML, or templates)