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

Function Project

pkg/question/selectors/projects.go:9–18  ·  view source on GitHub ↗
(questionText string, octopus *octopusApiClient.Client, ask question.Asker)

Source from the content-addressed store, hash-verified

7)
8
9func Project(questionText string, octopus *octopusApiClient.Client, ask question.Asker) (*projects.Project, error) {
10 existingProjects, err := octopus.Projects.GetAll()
11 if err != nil {
12 return nil, err
13 }
14
15 return question.SelectMap(ask, questionText, existingProjects, func(p *projects.Project) string {
16 return p.Name
17 })
18}
19
20func FindProject(octopus *octopusApiClient.Client, projectIdentifier string) (*projects.Project, error) {
21 project, err := octopus.Projects.GetByIdentifier(projectIdentifier)

Callers 10

AskQuestionsFunction · 0.92
deleteRunFunction · 0.92
listRunFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
AskQuestionsFunction · 0.92
listRunFunction · 0.92
listRunFunction · 0.92
selectProjectFunction · 0.92
PromptMissingFunction · 0.92

Calls 1

SelectMapFunction · 0.92

Tested by

no test coverage detected