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

Function branchSelector

pkg/cmd/project/branch/create/create.go:164–171  ·  view source on GitHub ↗
(questionText string, projectId string, opts *CreateOptions)

Source from the content-addressed store, hash-verified

162}
163
164func branchSelector(questionText string, projectId string, opts *CreateOptions) (*projects.GitReference, error) {
165 branches, err := opts.GetAllBranchesCallback(projectId)
166 if err != nil {
167 return nil, err
168 }
169
170 return question.SelectMap(opts.Ask, questionText, branches, func(b *projects.GitReference) string { return b.CanonicalName })
171}

Callers 1

PromptMissingFunction · 0.85

Calls 1

SelectMapFunction · 0.92

Tested by

no test coverage detected