Discover Packages
github.com/1broseidon/promptext
internal
update
package
Version:
v0.7.4
Opens a new window with list of versions in this module.
Published: Nov 10, 2025
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func CheckAndNotifyUpdate(currentVersion string )
CheckAndNotifyUpdate performs a non-blocking update check and notifies user if update available
This is called automatically during normal CLI usage to keep users informed
Network failures are silently ignored to avoid disrupting normal operation
CheckForUpdate queries GitHub API for the latest release and compares versions
Update downloads and installs the latest version
type ReleaseInfo struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Assets []struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
} `json:"assets"`
}
ReleaseInfo represents GitHub release metadata
type UpdateCheckCache struct {
LastCheck time .Time `json:"last_check"`
LatestVersion string `json:"latest_version"`
UpdateAvailable bool `json:"update_available"`
}
UpdateCheckCache stores the last update check information
Source Files
¶
Click to show internal directories.
Click to hide internal directories.