code: func (o *RolloutHistoryOptions) Run() error {
  
  	r := o.Builder().
  		WithScheme(scheme.Scheme, scheme.Scheme.PrioritizedVersionsAllGroups()...).
  		NamespaceParam(o.Namespace).DefaultNamespace().
  		FilenameParam(o.EnforceNamespace, &o.FilenameOptions).
  		ResourceTypeOrNameArgs(true, o.Resources...).
  		ContinueOnError().
  		Latest().
  		Flatten().
  		Do()
  	if err := r.Err(); err != nil {
  		return err
  	}
  
  	return r.Visit(func(info *resource.Info, err error) error {
  		if err != nil {
  			return err
  		}
  
  		mapping := info.ResourceMapping()
  		historyViewer, err := o.HistoryViewer(o.RESTClientGetter, mapping)
  		if err != nil {
  			return err
  		}
  		historyInfo, err := historyViewer.ViewHistory(info.Namespace, info.Name, o.Revision)
  		if err != nil {
  			return err
  		}
  
  		withRevision := ""
  		if o.Revision > 0 {
  			withRevision = fmt.Sprintf("with revision #%d", o.Revision)
  		}
  
  		printer, err := o.ToPrinter(fmt.Sprintf("%s\n%s", withRevision, historyInfo))
  		if err != nil {
  			return err
  		}
  
  		return printer.PrintObj(info.Object, o.Out)
  	})
  }
docs: // Run performs the execution of 'rollout history' sub command