code: func (o *ConvertOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) (err error) {
  	err = o.FilenameOptions.RequireFilenameOrKustomize()
  	if err != nil {
  		return err
  	}
  	o.builder = f.NewBuilder
  
  	o.Namespace, _, err = f.ToRawKubeConfigLoader().Namespace()
  	if err != nil {
  		return err
  	}
  
  	o.validator = func() (validation.Schema, error) {
  		return f.Validator(cmdutil.GetFlagBool(cmd, "validate"))
  	}
  
  	// build the printer
  	o.Printer, err = o.PrintFlags.ToPrinter()
  	if err != nil {
  		return err
  	}
  	return nil
  }
docs: // Complete collects information required to run Convert command from command line.