MCPcopy Create free account
hub / github.com/cli/cli / populateLatestVersions

Method populateLatestVersions

pkg/cmd/extension/manager.go:201–211  ·  view source on GitHub ↗
(exts []*Extension)

Source from the content-addressed store, hash-verified

199}
200
201func (m *Manager) populateLatestVersions(exts []*Extension) {
202 var wg sync.WaitGroup
203 for _, ext := range exts {
204 wg.Add(1)
205 go func(e *Extension) {
206 defer wg.Done()
207 e.LatestVersion()
208 }(ext)
209 }
210 wg.Wait()
211}
212
213func (m *Manager) InstallLocal(dir string) error {
214 name := filepath.Base(dir)

Callers 1

listMethod · 0.95

Calls 4

AddMethod · 0.65
DoneMethod · 0.65
LatestVersionMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected