ownbrew

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 13 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

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"`
	Args    []string `json:"args" yaml:"args"`
	Version string   `json:"version" yaml:"version"`
}

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