Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
Version string
Config *config.Config
Logger *slog.Logger
// contains filtered or unexported fields
}
State holds shared dependencies for all commands.
func (*State) SetUpdater ¶ added in v0.5.0
SetUpdater injects an Updater implementation.
type Updater ¶ added in v0.5.0
type Updater interface {
DetectLatest(ctx context.Context) (*selfupgrade.ReleaseInfo, bool, error)
UpdateSelf(ctx context.Context, currentVersion string) (*selfupgrade.ReleaseInfo, error)
}
Updater checks for and applies CLI updates.
Click to show internal directories.
Click to hide internal directories.