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

Function isRecentRelease

internal/ghcmd/cmd.go:343–345  ·  view source on GitHub ↗
(publishedAt time.Time)

Source from the content-addressed store, hash-verified

341}
342
343func isRecentRelease(publishedAt time.Time) bool {
344 return !publishedAt.IsZero() && time.Since(publishedAt) < time.Hour*24
345}
346
347// Check whether the gh binary was found under the Homebrew prefix
348func isUnderHomebrew(ghBinary string) bool {

Callers 1

MainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected