Documentation
¶
Index ¶
- func Command(method Method) (string, []string, bool)
- func CommandString(method Method) string
- func FetchLatestVersion(ctx context.Context, method Method) (string, error)
- func IsNewer(latest, current string) bool
- func ManualUpgradeInstructions(currentVersion, latestVersion string) string
- func RefreshState(ctx context.Context, state config.UpdateState, method Method) (config.UpdateState, error)
- func RunUpgrade(method Method, stdout, stderr io.Writer) error
- func ShouldPrompt(settings config.Settings, state config.UpdateState, currentVersion string, ...) (string, bool)
- func ShouldRefresh(state config.UpdateState, now time.Time) bool
- func SupportsAutoUpdate(method Method) bool
- type Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandString ¶
func FetchLatestVersion ¶
func RefreshState ¶
func RefreshState(ctx context.Context, state config.UpdateState, method Method) (config.UpdateState, error)
func ShouldPrompt ¶
func ShouldRefresh ¶
func ShouldRefresh(state config.UpdateState, now time.Time) bool
func SupportsAutoUpdate ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.