move f.Command out of the factory

This commit is contained in:
juanvallejo
2018-05-21 15:27:11 -04:00
parent e85b81bbee
commit 0d3e85608f
18 changed files with 68 additions and 63 deletions

View File

@@ -109,7 +109,7 @@ type editPrinterOptions struct {
func (o *EditOptions) Complete(f cmdutil.Factory, args []string, cmd *cobra.Command) error {
var err error
o.RecordFlags.Complete(f.Command(cmd, false))
o.RecordFlags.Complete(cmd)
o.Recorder, err = o.RecordFlags.ToRecorder()
if err != nil {
return err