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

Method populateLatestVersions

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

Source from the content-addressed store, hash-verified

195}
196
197func (m *Manager) populateLatestVersions(exts []*Extension) {
198 var wg sync.WaitGroup
199 for _, ext := range exts {
200 wg.Add(1)
201 go func(e *Extension) {
202 defer wg.Done()
203 e.LatestVersion()
204 }(ext)
205 }
206 wg.Wait()
207}
208
209func (m *Manager) InstallLocal(dir string) error {
210 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