Documentation ¶
Index ¶
- Constants
- Variables
- func IsNewerThan(a *brewv1.Info, b *brewv1.Info) bool
- type Cleanup
- type Copy
- type Deps
- type Hops
- func (action *Hops) AddConfigOverride(overrides ...func(cfg *hopsv1.Configuration))
- func (action *Hops) BottleRegistry() (bottle.Registry, error)
- func (action *Hops) Config() *hopsv1.Configuration
- func (action *Hops) Formulary(ctx context.Context) (formula.Formulary, error)
- func (action *Hops) MaxGoroutines() int
- func (action *Hops) Prefix() prefix.Prefix
- func (action *Hops) SetAlternateTags(args []string) (names []string)
- func (action *Hops) UserAgent() string
- func (action *Hops) Version() string
- type Images
- type Info
- type Install
- type Leaves
- type Link
- type List
- type Reinstall
- type Search
- type ShellEnv
- type Uninstall
- type Unlink
- type Update
- type Upgrade
Constants ¶
const DefaultConcurrency int = 8
DefaultConcurrency is the default maximum threads for parallel tasks.
Variables ¶
var ( Bash = "bash" // shell selector Csh = "csh" // shell selector Fish = "fish" // shell selector Pwsh = "pwsh" // shell selector PwshPreview = "pwsh-preview" // shell selector Sh = "sh" // shell selector Tcsh = "tcsh" // shell selector Zsh = "zsh" // shell selector // Shells lists all supported shells. Shells = []string{ Bash, Csh, Fish, Pwsh, Sh, Tcsh, Zsh, } )
Functions ¶
Types ¶
type Copy ¶
type Copy struct { *Hops DependencyOptions formula.DependencyTags Brewfile []string // path to Brewfile specifying formulae From hopsv1.RegistryConfig // source registry for bottles FromAPIDomain string // HOMEBREW_API_DOMAIN to source metadata from To hopsv1.RegistryConfig // destination registry for bottles }
Copy represents the action and its options.
type Deps ¶
type Deps struct { *Hops DependencyOptions formula.DependencyTags Platform platform.Platform }
Deps represents the action and its options.
type Hops ¶
type Hops struct { ConfigFiles []string // sets the config files to be searched EnvFiles []string // load environment variables from these files Concurrency int // sets the maximum threads for any parallel tasks // contains filtered or unexported fields }
Hops represents the base action.
func (*Hops) AddConfigOverride ¶
func (action *Hops) AddConfigOverride(overrides ...func(cfg *hopsv1.Configuration))
AddConfigOverride adds a configuration override function. The override function will be called when loading hops' configuration.
func (*Hops) BottleRegistry ¶
BottleRegistry produces the configured Bottle registry.
func (*Hops) Config ¶
func (action *Hops) Config() *hopsv1.Configuration
Config returns the Hops CLI configuration.
func (*Hops) MaxGoroutines ¶
MaxGoroutines produces the maximum number of Goroutines that should be started at a time.
func (*Hops) SetAlternateTags ¶
SetAlternateVersions sets alternate tags from a list of arguments, and returns the isolated names from the arguments.
type Images ¶
type Images struct { *Hops DependencyOptions formula.DependencyTags File string // path to a Brewfile specifying formulae dependencies NoResolve bool // disable tag resolution NoVerify bool // disable tag verification }
Images represents the action and its options.
type Install ¶
type Install struct { *Hops DependencyOptions formula.DependencyTags // Install formulae without checking for previously installed keg-only // or non-migrated versions. Force bool // Show what would be installed, but do not actually install anything. DryRun bool // An unsupported Homebrew development option to skip installing any // dependencies of any kind. If the dependencies are not already // present, the formula will have issues. If you're not developing // Homebrew, consider adjusting your PATH rather than using this option. IgnoreDependencies bool // Install the dependencies with specified options but do not install // the formula itself OnlyDependencies bool // Delete files that already exist in the prefix while linking Overwrite bool // contains filtered or unexported fields }
Install represents the action and its options.
type Link ¶
type Link struct { *Hops Overwrite bool // Delete files that already exist in the prefix while linking DryRun bool // List files which would be linked or deleted by hops link --overwrite without actually linking or deleting any files Force bool // Allow keg-only formulae to be linked Head bool // Link the HEAD version of the formula if it is installed // contains filtered or unexported fields }
Link represents the action and its options.
type List ¶
type List struct { *Hops // Show the version number for installed // formulae, or only the specified formulae if // formula are provided Versions bool // Only show formulae with multiple versions // installed Multiple bool }
List represents the action and its options.
type Search ¶
type Search struct { *Hops // Search for formulae with a description matching text // and casks with a name or description matching text Desc bool }
Search represents the action and its options.
type Unlink ¶
type Unlink struct { *Hops DryRun bool // List files which would be unlinked without actually unlinking or deleting any files }
Unlink represents the action and its options.