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

Function checkForExtensionUpdate

pkg/cmd/root/extension.go:93–99  ·  view source on GitHub ↗
(em extensions.ExtensionManager, ext extensions.Extension)

Source from the content-addressed store, hash-verified

91}
92
93func checkForExtensionUpdate(em extensions.ExtensionManager, ext extensions.Extension) (*update.ReleaseInfo, error) {
94 if !update.ShouldCheckForExtensionUpdate() {
95 return nil, nil
96 }
97
98 return update.CheckForExtensionUpdate(em, ext, time.Now())
99}

Callers

nothing calls this directly

Calls 2

CheckForExtensionUpdateFunction · 0.92

Tested by

no test coverage detected