(ioStreams genericiooptions.IOStreams)
| 94 | } |
| 95 | |
| 96 | func NewScaleOptions(ioStreams genericiooptions.IOStreams) *ScaleOptions { |
| 97 | return &ScaleOptions{ |
| 98 | PrintFlags: genericclioptions.NewPrintFlags("scaled"), |
| 99 | RecordFlags: genericclioptions.NewRecordFlags(), |
| 100 | CurrentReplicas: -1, |
| 101 | Recorder: genericclioptions.NoopRecorder{}, |
| 102 | IOStreams: ioStreams, |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // NewCmdScale returns a cobra command with the appropriate configuration and flags to run scale |
| 107 | func NewCmdScale(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { |
no outgoing calls
no test coverage detected
searching dependent graphs…