(dependencies *cmd.Dependencies, taskIDs []string, timeout int, pollInterval int, cancelOnTimeout bool, showProgress bool, cmd *cobra.Command)
| 52 | } |
| 53 | |
| 54 | func NewWaitOps(dependencies *cmd.Dependencies, taskIDs []string, timeout int, pollInterval int, cancelOnTimeout bool, showProgress bool, cmd *cobra.Command) *WaitOptions { |
| 55 | return &WaitOptions{ |
| 56 | Dependencies: dependencies, |
| 57 | TaskIDs: taskIDs, |
| 58 | GetServerTasksCallback: getServerTasksCallback(dependencies.Client), |
| 59 | GetTaskDetailsCallback: getTaskDetailsCallback(dependencies.Client), |
| 60 | CancelServerTasksCallback: cancelServerTasksCallback(dependencies.Client), |
| 61 | Timeout: timeout, |
| 62 | PollInterval: pollInterval, |
| 63 | CancelOnTimeout: cancelOnTimeout, |
| 64 | ShowProgress: showProgress, |
| 65 | Command: cmd, |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func NewCmdWait(f factory.Factory) *cobra.Command { |
| 70 | var timeout int |
no test coverage detected