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

Function FindLifecycle

pkg/question/selectors/lifecycles.go:21–28  ·  view source on GitHub ↗
(octopus *octopusApiClient.Client, lifecycleIdentifier string)

Source from the content-addressed store, hash-verified

19}
20
21func FindLifecycle(octopus *octopusApiClient.Client, lifecycleIdentifier string) (*lifecycles.Lifecycle, error) {
22 lifecycle, err := octopus.Lifecycles.GetByIDOrName(lifecycleIdentifier)
23 if err != nil {
24 return nil, err
25 }
26
27 return lifecycle, nil
28}

Callers 1

PromptMissingFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected