ownbrew

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Ownbrew) error

func WithBinDir

func WithBinDir(v string) Option

func WithCellarDir

func WithCellarDir(v string) Option

func WithDry

func WithDry(v bool) Option

func WithPackages

func WithPackages(v ...Package) Option

func WithTapDir

func WithTapDir(v string) Option

func WithTempDir

func WithTempDir(v string) Option

func WithTimeout added in v0.4.5

func WithTimeout(v time.Duration) Option

type Ownbrew

type Ownbrew struct {
	// contains filtered or unexported fields
}

func New

func New(l log.Logger, opts ...Option) (*Ownbrew, error)

func (*Ownbrew) Install

func (o *Ownbrew) Install(ctx context.Context) error

type Package

type Package struct {
	Tap     string   `json:"tap" yaml:"tap"`
	Name    string   `json:"name" yaml:"name"`
	Names   []string `json:"names" yaml:"names"`
	Args    []string `json:"args" yaml:"args"`
	Version string   `json:"version" yaml:"version"`
}

func (Package) AllNames added in v0.4.0

func (c Package) AllNames() []string

func (Package) String

func (c Package) String() string

func (Package) URL

func (c Package) URL() (string, error)

Jump to

Keyboard shortcuts

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