var scaleLong … var scaleExample … type ScaleOptions … func NewScaleOptions(ioStreams genericiooptions.IOStreams) *ScaleOptions { … } // NewCmdScale returns a cobra command with the appropriate configuration and flags to run scale func NewCmdScale(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … } func (o *ScaleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … } func (o *ScaleOptions) Validate() error { … } // RunScale executes the scaling func (o *ScaleOptions) RunScale() error { … } func scaler(f cmdutil.Factory) (scale.Scaler, error) { … }