Documentation
¶
Index ¶
Constants ¶
View Source
const ( GithubOwner = "sleuth-io" GithubRepo = "sx" )
Variables ¶
This section is empty.
Functions ¶
func ApplyPendingUpdate ¶ added in v0.12.6
func ApplyPendingUpdate() bool
ApplyPendingUpdate checks for a pending update marker and applies it. This should be called at startup before CheckAndUpdateInBackground. The fast path (no marker) is a single os.Stat call. Returns true if an update was applied (caller should re-exec).
func CheckAndUpdateInBackground ¶
func CheckAndUpdateInBackground()
CheckAndUpdateInBackground checks for updates and installs them automatically if found. It only checks once per day (tracked via cache file). This function returns immediately and doesn't block.
func ClearPendingUpdate ¶ added in v0.12.6
func ClearPendingUpdate()
ClearPendingUpdate removes the pending update marker file. Call this after a successful manual update (e.g., `sx update`).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.