MCPcopy Index your code
hub / github.com/cli/cli / UpdateAvailable

Method UpdateAvailable

pkg/cmd/extension/extension.go:214–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214func (e *Extension) UpdateAvailable() bool {
215 if e.IsLocal() ||
216 e.CurrentVersion() == "" ||
217 e.LatestVersion() == "" ||
218 e.CurrentVersion() == e.LatestVersion() {
219 return false
220 }
221 return true
222}
223
224func (e *Extension) loadManifest() (binManifest, error) {
225 var bm binManifest

Calls 3

IsLocalMethod · 0.95
CurrentVersionMethod · 0.95
LatestVersionMethod · 0.95