brew

package
v0.2.56 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrewExec

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

func NewExec

func NewExec(execPath string, logger gg_log.ILogger) *BrewExec

func (*BrewExec) ExecuteCommand

func (instance *BrewExec) ExecuteCommand(arguments ...string) (out string, err error)

func (*BrewExec) FlushLog

func (instance *BrewExec) FlushLog()

func (*BrewExec) GetDir

func (instance *BrewExec) GetDir() string

func (*BrewExec) Install

func (instance *BrewExec) Install(arguments ...string) (out string, err error)

Install run brew install ....

func (*BrewExec) IsInstalled

func (instance *BrewExec) IsInstalled() bool

func (*BrewExec) Pid

func (instance *BrewExec) Pid() int

func (*BrewExec) SetDir

func (instance *BrewExec) SetDir(dir string) *BrewExec

func (*BrewExec) TryKill

func (instance *BrewExec) TryKill() error

func (*BrewExec) Version

func (instance *BrewExec) Version() (response string, err error)

type BrewHelper

type BrewHelper struct {
	// contains filtered or unexported fields
}
var (
	Brew *BrewHelper
)

func (*BrewHelper) GetPath

func (instance *BrewHelper) GetPath(path string) (response string)

func (*BrewHelper) GetTempPath

func (instance *BrewHelper) GetTempPath(subPath string) (response string)

func (*BrewHelper) IsInstalled

func (instance *BrewHelper) IsInstalled() bool

func (*BrewHelper) LogDisableRotation

func (instance *BrewHelper) LogDisableRotation()

func (*BrewHelper) LogFlush

func (instance *BrewHelper) LogFlush()

func (*BrewHelper) NewExec

func (instance *BrewHelper) NewExec() *BrewExec

NewExec Creates new exec command with default password

func (*BrewHelper) Root

func (instance *BrewHelper) Root() string

func (*BrewHelper) SetRoot

func (instance *BrewHelper) SetRoot(root string)

func (*BrewHelper) Temp

func (instance *BrewHelper) Temp() string

func (*BrewHelper) Version

func (instance *BrewHelper) Version() (version string, err error)

Jump to

Keyboard shortcuts

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