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

@@ -157,7 +157,7 @@ func NewCmdAnnotate(parent string, f cmdutil.Factory, ioStreams genericclioption
func (o *AnnotateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) 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