Merge pull request #4409 from brendandburns/docs

Add some docs to the template format.
This commit is contained in:
Saad Ali
2015-02-13 07:50:16 -08:00
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)