MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewWaitOps

Function NewWaitOps

pkg/cmd/task/wait/wait.go:54–67  ·  view source on GitHub ↗
(dependencies *cmd.Dependencies, taskIDs []string, timeout int, pollInterval int, cancelOnTimeout bool, showProgress bool, cmd *cobra.Command)

Source from the content-addressed store, hash-verified

52}
53
54func 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
69func NewCmdWait(f factory.Factory) *cobra.Command {
70 var timeout int

Callers 1

NewCmdWaitFunction · 0.85

Calls 3

getServerTasksCallbackFunction · 0.85
getTaskDetailsCallbackFunction · 0.85

Tested by

no test coverage detected