Graduate the flag for structural output --experimental-output to just --output
This commit is contained in:
		@@ -104,7 +104,9 @@ func (pf *PrintFlags) ToPrinter() (Printer, error) {
 | 
				
			|||||||
func (pf *PrintFlags) AddFlags(cmd *cobra.Command) {
 | 
					func (pf *PrintFlags) AddFlags(cmd *cobra.Command) {
 | 
				
			||||||
	pf.JSONYamlPrintFlags.AddFlags(cmd)
 | 
						pf.JSONYamlPrintFlags.AddFlags(cmd)
 | 
				
			||||||
	pf.KubeTemplatePrintFlags.AddFlags(cmd)
 | 
						pf.KubeTemplatePrintFlags.AddFlags(cmd)
 | 
				
			||||||
	cmd.Flags().StringVarP(pf.OutputFormat, "experimental-output", "o", *pf.OutputFormat, fmt.Sprintf("Output format. One of: %s.", strings.Join(pf.AllowedFormats(), "|")))
 | 
						cmd.Flags().StringVarP(pf.OutputFormat, "output", "o", *pf.OutputFormat, fmt.Sprintf("Output format. One of: %s.", strings.Join(pf.AllowedFormats(), "|")))
 | 
				
			||||||
 | 
						cmd.Flags().StringVarP(pf.OutputFormat, "experimental-output", "", *pf.OutputFormat, fmt.Sprintf("Output format. One of: %s.", strings.Join(pf.AllowedFormats(), "|")))
 | 
				
			||||||
 | 
						_ = cmd.Flags().MarkDeprecated("experimental-output", "please use --output instead.")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// WithDefaultOutput sets a default output format if one is not provided through a flag value
 | 
					// WithDefaultOutput sets a default output format if one is not provided through a flag value
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user