MCPcopy
hub / github.com/cli/cli / Extension

Struct Extension

pkg/cmd/extension/extension.go:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25)
26
27type Extension struct {
28 path string
29 kind ExtensionKind
30 gitClient gitClient
31 httpClient *http.Client
32
33 mu sync.RWMutex
34
35 // These fields get resolved dynamically:
36 url string
37 isPinned *bool
38 currentVersion string
39 latestVersion string
40 owner string
41}
42
43func (e *Extension) Name() string {
44 return strings.TrimPrefix(filepath.Base(e.path), "gh-")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected