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

Method UpdateDir

pkg/cmd/extension/manager.go:599–601  ·  view source on GitHub ↗

UpdateDir returns the extension-specific directory where updates are stored.

(name string)

Source from the content-addressed store, hash-verified

597
598// UpdateDir returns the extension-specific directory where updates are stored.
599func (m *Manager) UpdateDir(name string) string {
600 return filepath.Join(m.updateDir(), normalizeExtension(name))
601}
602
603//go:embed ext_tmpls/goBinMain.go.txt
604var mainGoTmpl string

Callers 1

Calls 2

normalizeExtensionFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected