rm GetStandardPrinter

This commit is contained in:
juanvallejo
2018-05-02 14:49:49 -04:00
parent 5a34e4f594
commit a74b28d961
9 changed files with 23 additions and 237 deletions

View File

@@ -183,9 +183,8 @@ func (o *DeleteOptions) Complete(f cmdutil.Factory, out, errOut io.Writer, args
}
func (o *DeleteOptions) Validate(cmd *cobra.Command) error {
outputMode := cmdutil.GetFlagString(cmd, "output")
if outputMode != "" && outputMode != "name" {
return cmdutil.UsageErrorf(cmd, "Unexpected -o output mode: %v. We only support '-o name'.", outputMode)
if o.Output != "" && o.Output != "name" {
return cmdutil.UsageErrorf(cmd, "Unexpected -o output mode: %v. We only support '-o name'.", o.Output)
}
if o.DeleteAll && len(o.LabelSelector) > 0 {