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

Function projectSelector

pkg/cmd/project/variables/update/update.go:322–329  ·  view source on GitHub ↗
(questionText string, getAllProjectsCallback shared.GetAllProjectsCallback, ask question.Asker)

Source from the content-addressed store, hash-verified

320}
321
322func projectSelector(questionText string, getAllProjectsCallback shared.GetAllProjectsCallback, ask question.Asker) (*projects.Project, error) {
323 existingProjects, err := getAllProjectsCallback()
324 if err != nil {
325 return nil, err
326 }
327
328 return question.SelectMap(ask, questionText, existingProjects, func(p *projects.Project) string { return p.GetName() })
329}
330
331func getScopeUpdateOptions() []*selectors.SelectOption[string] {
332 return []*selectors.SelectOption[string]{

Callers 1

PromptMissingFunction · 0.70

Calls 2

SelectMapFunction · 0.92
GetNameMethod · 0.65

Tested by

no test coverage detected