var historyLong … var historyExample … type RolloutHistoryOptions … // NewRolloutHistoryOptions returns an initialized RolloutHistoryOptions instance func NewRolloutHistoryOptions(streams genericiooptions.IOStreams) *RolloutHistoryOptions { … } // NewCmdRolloutHistory returns a Command instance for RolloutHistory sub command func NewCmdRolloutHistory(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command { … } // Complete completes al the required options func (o *RolloutHistoryOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … } // Validate makes sure all the provided values for command-line options are valid func (o *RolloutHistoryOptions) Validate() error { … } // Run performs the execution of 'rollout history' sub command func (o *RolloutHistoryOptions) Run() error { … }