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

Function checkForExtensionUpdate

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

CheckForExtensionUpdateFunction · 0.92

Tested by

no test coverage detected