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

Method populateLatestVersions

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

Source from the content-addressed store, hash-verified

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

Callers 1

listMethod · 0.95

Calls 2

AddMethod · 0.65
LatestVersionMethod · 0.65

Tested by

no test coverage detected