brew

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 10 Imported by: 3

Documentation

Index

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) Installed

func (c *HomebrewClient) Installed(ctx context.Context) bool

func (*HomebrewClient) LatestTag

func (c *HomebrewClient) LatestTag(ctx context.Context) (*version.Version, error)

update instruction

  1. update formula by "brew tap <formula>" if formula is not empty
  2. get latest version by "brew info <formula>"

func (*HomebrewClient) Type

func (c *HomebrewClient) Type() updater.MeansType

func (*HomebrewClient) Update

func (c *HomebrewClient) Update(ctx context.Context, _ *version.Version) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL