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

Method UpdateDir

pkg/cmd/extension/manager.go:594–596  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

normalizeExtensionFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected