Documentation
¶
Overview ¶
Package update checks the npm registry for newer Puzzle CLI releases and caches the result for passive notifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheDir string
CacheDir overrides the directory containing update-check.json. When empty, Puzzle uses <os.UserCacheDir()>/puzzle. Tests may redirect it to a temp dir.
Functions ¶
func CheckPassive ¶
CheckPassive returns a newer cached version, when one exists, and refreshes stale cache data in the background. It never blocks on or reports registry errors.
func FetchLatest ¶
FetchLatest fetches the latest published @magic-spells/puzzle version.
Types ¶
Click to show internal directories.
Click to hide internal directories.