Documentation ¶
Index ¶
- Constants
- func HomebrewMeans(formula, name string) updater.MeansBuilder
- type HomebrewClient
- func (c *HomebrewClient) CommandText(v *version.Version) string
- func (c *HomebrewClient) Installed(ctx context.Context) bool
- func (c *HomebrewClient) LatestTag(ctx context.Context) (*version.Version, error)
- func (c *HomebrewClient) Type() updater.MeansType
- func (c *HomebrewClient) Update(ctx context.Context, _ *version.Version) error
Constants ¶
View Source
const MeansTypeHomebrew updater.MeansType = "homebrew"
Variables ¶
This section is empty.
Functions ¶
func HomebrewMeans ¶
func HomebrewMeans(formula, name string) updater.MeansBuilder
Types ¶
type HomebrewClient ¶
type HomebrewClient struct {
// contains filtered or unexported fields
}
func (*HomebrewClient) CommandText ¶
func (c *HomebrewClient) CommandText(v *version.Version) string
func (*HomebrewClient) LatestTag ¶
func (c *HomebrewClient) LatestTag(ctx context.Context) (*version.Version, error)
update instruction
- update formula by "brew tap <formula>" if formula is not empty
- get latest version by "brew info <formula>"
func (*HomebrewClient) Type ¶
func (c *HomebrewClient) Type() updater.MeansType
Click to show internal directories.
Click to hide internal directories.