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

Function GetAllProjects

pkg/cmd/runbook/shared/shared.go:150–157  ·  view source on GitHub ↗
(client *client.Client)

Source from the content-addressed store, hash-verified

148}
149
150func GetAllProjects(client *client.Client) ([]*projects.Project, error) {
151 res, err := client.Projects.GetAll()
152 if err != nil {
153 return nil, err
154 }
155
156 return res, nil
157}
158
159func GetProject(octopus *client.Client, projectIdentifier string) (*projects.Project, error) {
160 project, err := octopus.Projects.GetByIdentifier(projectIdentifier)

Callers 5

getConfiguredProjectsFunction · 0.92
getConfiguredProjectsFunction · 0.92
NewDeleteOptionsFunction · 0.92
NewCreateOptionsFunction · 0.92
NewPublishOptionsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected