MCPcopy
hub / github.com/cli/cli / UpdateDir

Method UpdateDir

pkg/cmd/extension/manager.go:593–595  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

591
592// UpdateDir returns the extension-specific directory where updates are stored.
593func (m *Manager) UpdateDir(name string) string {
594 return filepath.Join(m.updateDir(), normalizeExtension(name))
595}
596
597//go:embed ext_tmpls/goBinMain.go.txt
598var mainGoTmpl string

Callers 1

Calls 2

normalizeExtensionFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected