machine

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHomebrewBin

func GetHomebrewBin() (string, error)

func HomebrewBundle

func HomebrewBundle(m Machine, params HomebrewParams, stdout io.Writer, stderr io.Writer) error

func HomebrewUpgrade

func HomebrewUpgrade(m Machine, stdout io.Writer, stderr io.Writer) error

func InstallHomebrew

func InstallHomebrew(m Machine, stdout io.Writer, stderr io.Writer) error

func IsHomebrewInstalled

func IsHomebrewInstalled(m Machine) bool

func UpdateHomebrew

func UpdateHomebrew(m Machine, stdout io.Writer, stderr io.Writer) error

Types

type File

type File interface {
	io.Writer
	io.StringWriter
	Name() string
}

type Homebrew

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

type HomebrewParams

type HomebrewParams struct {
	Packages   []string `json:"packages"`
	Casks      []string `json:"casks"`
	Taps       []string `json:"taps"`
	Mas        []string `json:"mas"`
	Whalebrews []string `json:"whalebrews"`
}

type LocalMachine

type LocalMachine struct {
}

func (*LocalMachine) Shell

func (m *LocalMachine) Shell(input string, stdout io.Writer, stderr io.Writer) error

func (*LocalMachine) TempFile

func (m *LocalMachine) TempFile(name string) (File, func() error, error)

type Machine

type Machine interface {
	Shell(input string, stdout io.Writer, stderr io.Writer) error
	TempFile(name string) (File, func() error, error)
}

func NewLocalMachine

func NewLocalMachine() Machine

type Row

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

Jump to

Keyboard shortcuts

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