| 25 | ) |
| 26 | |
| 27 | type 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 | |
| 43 | func (e *Extension) Name() string { |
| 44 | return strings.TrimPrefix(filepath.Base(e.path), "gh-") |
nothing calls this directly
no outgoing calls
no test coverage detected