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

Function removeTaskID

pkg/cmd/task/wait/wait.go:252–261  ·  view source on GitHub ↗
(taskIDs []string, taskID string)

Source from the content-addressed store, hash-verified

250}
251
252func removeTaskID(taskIDs []string, taskID string) []string {
253 for i, p := range taskIDs {
254 if p == taskID {
255 taskIDs[i] = taskIDs[len(taskIDs)-1]
256 taskIDs = taskIDs[:len(taskIDs)-1]
257 break
258 }
259 }
260 return taskIDs
261}
262
263func getTaskMappers() output.Mappers[*tasks.Task] {
264 return output.Mappers[*tasks.Task]{

Callers 1

WaitRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected