Documentation
¶
Index ¶
- func NewInstall(runtime shared.Runtime, options cobracmd.CommandOptions) *cobra.Command
- func NewSelfUpdate(runtime shared.Runtime, cfg selfupdate.Config, after AfterUpdate) *cobra.Command
- func NewUpgrade(runtime shared.Runtime, cfg selfupdate.Config, after AfterUpdate) *cobra.Command
- type AfterUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInstall ¶
NewInstall returns the "install" command, built from github.com/strongo/cli-helpers/cliinstall/cobracmd against wb's own catalog entry (cli-install#req:host-identity-from-catalog). `wb install` lists the fleet CLIs relevant to wb with their live status, and `wb install <name>...` installs them the same way wb itself was installed. cobracmd.New panics when "wb" is absent from the compiled catalog — a programming error TestNewSelfUpdateConfigIdentity and the cobracmd package's own tests catch, never a runtime state a user sees.
func NewSelfUpdate ¶
func NewSelfUpdate(runtime shared.Runtime, cfg selfupdate.Config, after AfterUpdate) *cobra.Command
func NewUpgrade ¶
func NewUpgrade(runtime shared.Runtime, cfg selfupdate.Config, after AfterUpdate) *cobra.Command
NewUpgrade binds the upstream upgrade adapter to WB catalog, error, and post-update policy.
Types ¶
type AfterUpdate ¶
type AfterUpdate func(context.Context, selfupdate.AfterUpdate, wbupdate.Output) error
AfterUpdate delegates verified post-update operations without exposing Cobra.