Documentation
¶
Overview ¶
Package common provides utility functions for the IDSEC CLI, including self-update functionality for checking and managing application versions using GitHub releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelfUpgrader ¶
func GetSelfUpgrader() (*selfupdate.Updater, error)
GetSelfUpgrader creates and configures a GitHub self-updater instance.
func IsLatestVersion ¶
IsLatestVersion checks if the current application version is the latest available, bounded by latestVersionCheckTimeout.
On timeout the function returns a non-nil error; callers using the established `if err == nil && !isLatest` pattern (e.g. CommonActionsExecution) silently treat the result as inconclusive, surfacing nothing to the user. The in-flight HTTP request is left to complete in the background and its result is discarded; this is a deliberate trade-off because the vendored selfupdate library does not expose a context for cancellation.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package args provides command-line argument handling utilities for the IDSEC SDK.
|
Package args provides command-line argument handling utilities for the IDSEC SDK. |
|
Package deprecation provides helpers for marking CLI commands and flags as deprecated without hiding them from Cobra/pflag help output.
|
Package deprecation provides helpers for marking CLI commands and flags as deprecated without hiding them from Cobra/pflag help output. |