MCPcopy Create free account
hub / github.com/anchordotdev/cli / IsUpgradeable

Function IsUpgradeable

cli.go:64–71  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

62}
63
64func IsUpgradeable(ctx context.Context) (bool, error) {
65 release, err := getLatestRelease(ctx)
66 if err != nil {
67 return false, err
68 }
69
70 return release.TagName != nil && *release.TagName != ReleaseTagName(), nil
71}
72
73func getLatestRelease(ctx context.Context) (*Release, error) {
74 if LatestRelease != nil {

Callers 2

runTUIMethod · 0.92
ReleaseCheckFunction · 0.92

Calls 2

getLatestReleaseFunction · 0.85
ReleaseTagNameFunction · 0.85

Tested by

no test coverage detected