MCPcopy
hub / github.com/cli/cli / populateLatestVersions

Method populateLatestVersions

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

Source from the content-addressed store, hash-verified

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