type RestartOptions … var restartLong … var restartExample … // NewRolloutRestartOptions returns an initialized RestartOptions instance func NewRolloutRestartOptions(streams genericiooptions.IOStreams) *RestartOptions { … } // NewCmdRolloutRestart returns a Command instance for 'rollout restart' sub command func NewCmdRolloutRestart(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command { … } // Complete completes all the required options func (o *RestartOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … } func (o *RestartOptions) Validate() error { … } // RunRestart performs the execution of 'rollout restart' sub command func (o RestartOptions) RunRestart() error { … }