Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultUpgradeConfirmCb = func(current, target releaser.Version) bool { return true }
Functions ¶
func CheckForUpdates ¶
func CheckForUpdates(targetPath string, current releaser.Version, client *releaser.Client, upgradeCb UpgradeConfirmCB) error
CheckForUpdates checks for updates and applies it if available. If the upgradeCb is not nil, it will prompt the user for confirmation before applying the update. If an update is applied, it will restart the application with the new version. If no update is available, it will return nil. If an error occurs during the update process, it will return the error.
Types ¶
type UpgradeConfirmCB ¶
UpgradeConfirmCB is a function that is called when an update is ready to be applied.
Click to show internal directories.
Click to hide internal directories.