type UndoOptions … var undoLong … var undoExample … // NewRolloutUndoOptions returns an initialized UndoOptions instance func NewRolloutUndoOptions(streams genericiooptions.IOStreams) *UndoOptions { … } // NewCmdRolloutUndo returns a Command instance for the 'rollout undo' sub command func NewCmdRolloutUndo(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command { … } // Complete completes all the required options func (o *UndoOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … } func (o *UndoOptions) Validate() error { … } // RunUndo performs the execution of 'rollout undo' sub command func (o *UndoOptions) RunUndo() error { … }