Discover Packages
github.com/OLCUBO/cubox-cli
internal
update
package
Version:
v1.0.6
Opens a new window with list of versions in this module.
Published: Apr 22, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Info struct {
Current string `json:"current"`
Latest string `json:"latest"`
Message string `json:"message"`
Command string `json:"command"`
}
Info holds the update notification payload included in _notice.update.
Check fetches the latest published version from the npm registry and
compares it with currentVersion. Returns nil when up-to-date, when the
check fails, or when the cached value is still fresh. Never panics.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.