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

Function promptLibraryGitCredentials

pkg/cmd/project/convert/convert.go:363–373  ·  view source on GitHub ↗
(opts *ConvertOptions, gitCredentialsCallback GetAllGitCredentialsCallback)

Source from the content-addressed store, hash-verified

361}
362
363func promptLibraryGitCredentials(opts *ConvertOptions, gitCredentialsCallback GetAllGitCredentialsCallback) error {
364 if opts.GitCredentials.Value == "" {
365 selectedOption, err := selectors.Select(opts.Ask, "Select which Git credentials to use", gitCredentialsCallback, func(resource *credentials.Resource) string { return resource.Name })
366
367 if err != nil {
368 return err
369 }
370 opts.GitCredentials.Value = selectedOption.GetName()
371 }
372 return nil
373}
374
375func getGitStorageOptions() []*selectors.SelectOption[string] {
376 return []*selectors.SelectOption[string]{

Callers 1

PromptForConfigAsCodeFunction · 0.85

Calls 2

SelectFunction · 0.92
GetNameMethod · 0.65

Tested by

no test coverage detected