Versions in this module Expand all Collapse all v0 v0.1.0 Oct 17, 2022 Changes in this version + const AdaptorAuto + const AdaptorBrew + const AdaptorGoEnv + const AdaptorScoop + type Adaptor interface + ApplyOpFunc func(fn OpFunc) + Install func(ver string) error + List func() error + Name func() string + Switch func(ver string) error + Uninstall func(ver string) error + Update func(ver string) error + func MakeAdaptor(adaptor string) (Adaptor, error) + type BrewAdaptor struct + func NewBrewAdaptor() *BrewAdaptor + func (a *BrewAdaptor) ApplyOpFunc(fn OpFunc) + func (a *BrewAdaptor) Install(ver string) error + func (a *BrewAdaptor) List() error + func (a *BrewAdaptor) Name() string + func (a *BrewAdaptor) Switch(ver string) error + func (a *BrewAdaptor) Uninstall(ver string) error + func (a *BrewAdaptor) Update(ver string) error + type CallOpts struct + LibDir string + Yes bool + type GoEnvAdaptor struct + func NewGoEnvAdaptor() *GoEnvAdaptor + func (a *GoEnvAdaptor) ApplyOpFunc(fn OpFunc) + func (a *GoEnvAdaptor) Install(ver string) error + func (a *GoEnvAdaptor) List() error + func (a *GoEnvAdaptor) Name() string + func (a *GoEnvAdaptor) Switch(ver string) error + func (a *GoEnvAdaptor) Uninstall(ver string) error + func (a *GoEnvAdaptor) Update(ver string) error + type HandleFn func(ver string) error + type OpFunc func(opts *CallOpts) + type ScoopAdaptor struct + func NewScoopAdaptor() *ScoopAdaptor + func (a *ScoopAdaptor) ApplyOpFunc(fn OpFunc) + func (a *ScoopAdaptor) Install(ver string) error + func (a *ScoopAdaptor) List() error + func (a *ScoopAdaptor) Name() string + func (a *ScoopAdaptor) Switch(ver string) error + func (a *ScoopAdaptor) Uninstall(ver string) error + func (a *ScoopAdaptor) Update(ver string) error + type StdAdaptor struct + InstallFn HandleFn + ListFn func() error + SwitchFn HandleFn + UninstallFn HandleFn + UpdateFn HandleFn + func NewStdAdaptor(name string) *StdAdaptor + func (a *StdAdaptor) ApplyOpFunc(fn OpFunc) + func (a *StdAdaptor) Install(ver string) error + func (a *StdAdaptor) List() error + func (a *StdAdaptor) Name() string + func (a *StdAdaptor) Switch(ver string) error + func (a *StdAdaptor) Uninstall(ver string) error + func (a *StdAdaptor) Update(ver string) error + func (a *StdAdaptor) WithOptions(fns ...OpFunc) *StdAdaptor