MCPcopy Index your code
hub / github.com/cli/cli / PopulateMultipleSelectedRepositoryInformation

Function PopulateMultipleSelectedRepositoryInformation

pkg/cmd/variable/shared/shared.go:69–77  ·  view source on GitHub ↗
(apiClient *api.Client, host string, variables []Variable)

Source from the content-addressed store, hash-verified

67}
68
69func PopulateMultipleSelectedRepositoryInformation(apiClient *api.Client, host string, variables []Variable) error {
70 for i, variable := range variables {
71 if err := PopulateSelectedRepositoryInformation(apiClient, host, &variable); err != nil {
72 return err
73 }
74 variables[i] = variable
75 }
76 return nil
77}
78
79func PopulateSelectedRepositoryInformation(apiClient *api.Client, host string, variable *Variable) error {
80 if variable.SelectedReposURL == "" {

Callers 1

getOrgVariablesFunction · 0.92

Tested by

no test coverage detected