(opts *ConvertOptions, gitCredentialsCallback GetAllGitCredentialsCallback)
| 361 | } |
| 362 | |
| 363 | func 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 | |
| 375 | func getGitStorageOptions() []*selectors.SelectOption[string] { |
| 376 | return []*selectors.SelectOption[string]{ |
no test coverage detected