install

package
v0.0.0-...-43659af Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskMsg   = LogMessage{"TASK", common.Blue}
	CmdMsg    = LogMessage{"CMD", common.Green}
	WarnMsg   = LogMessage{"WARN", common.Yellow}
	StdOutMsg = LogMessage{"STDOUT", common.Purple}

	ErrMsg    = LogMessage{"ERROR", common.Red}
	StdErrMsg = LogMessage{"STDERR", common.Red}
)

Functions

This section is empty.

Types

type Commander

type Commander interface {
	Run(command string)
	Exists(command string) bool
	Exit(code int)
	TryLog(msgType LogMessage, text string)
}

type DefaultCommander

type DefaultCommander struct {
	Verbose  bool
	Progress *progressbar.ProgressBar
}

func NewDefaultCommander

func NewDefaultCommander(verbose bool) *DefaultCommander

func (*DefaultCommander) Exists

func (c *DefaultCommander) Exists(command string) bool

func (*DefaultCommander) Exit

func (c *DefaultCommander) Exit(code int)

func (*DefaultCommander) Run

func (c *DefaultCommander) Run(command string)

func (*DefaultCommander) TryLog

func (c *DefaultCommander) TryLog(logMsg LogMessage, output string)

type DefaultTimeProvider

type DefaultTimeProvider struct {
}

func (DefaultTimeProvider) Now

func (tp DefaultTimeProvider) Now() time.Time

type HomeDir

type HomeDir struct {
	Path string
}

func DefaultHomeDir

func DefaultHomeDir() HomeDir

func (HomeDir) ApplicationSupportDir

func (home HomeDir) ApplicationSupportDir() string

func (HomeDir) IdeKeymapPaths

func (home HomeDir) IdeKeymapPaths(ide param.IDE) []string

func (HomeDir) IdesKeymapPaths

func (home HomeDir) IdesKeymapPaths(ide []param.IDE) []string

func (HomeDir) KarabinerComplexModificationsDir

func (home HomeDir) KarabinerComplexModificationsDir() string

func (HomeDir) KarabinerConfigBackupFile

func (home HomeDir) KarabinerConfigBackupFile(time time.Time) string

func (HomeDir) KarabinerConfigDir

func (home HomeDir) KarabinerConfigDir() string

func (HomeDir) KarabinerConfigFile

func (home HomeDir) KarabinerConfigFile() string

func (HomeDir) LibraryDir

func (home HomeDir) LibraryDir() string

func (HomeDir) PreferencesDir

func (home HomeDir) PreferencesDir() string

func (HomeDir) SourceKeymap

func (home HomeDir) SourceKeymap(ide param.IDE) string

type Installation

type Installation struct {
	Commander
	param.Params
	HomeDir
	ProfileName      string
	InstallationTime time.Time
}

type LogMessage

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

type TimeProvider

type TimeProvider interface {
	Now() time.Time
}

Jump to

Keyboard shortcuts

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