Documentation ¶
Index ¶
- Variables
- type Commander
- type DefaultCommander
- type DefaultTimeProvider
- type HomeDir
- func (home HomeDir) ApplicationSupportDir() string
- func (home HomeDir) IdeKeymapPaths(ide param.IDE) []string
- func (home HomeDir) IdesKeymapPaths(ide []param.IDE) []string
- func (home HomeDir) KarabinerComplexModificationsDir() string
- func (home HomeDir) KarabinerConfigBackupFile(time time.Time) string
- func (home HomeDir) KarabinerConfigDir() string
- func (home HomeDir) KarabinerConfigFile() string
- func (home HomeDir) LibraryDir() string
- func (home HomeDir) PreferencesDir() string
- func (home HomeDir) SourceKeymap(ide param.IDE) string
- type Installation
- type LogMessage
- type TimeProvider
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 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 (HomeDir) KarabinerComplexModificationsDir ¶
func (HomeDir) KarabinerConfigBackupFile ¶
func (HomeDir) KarabinerConfigDir ¶
func (HomeDir) KarabinerConfigFile ¶
func (HomeDir) LibraryDir ¶
func (HomeDir) PreferencesDir ¶
type Installation ¶
type LogMessage ¶
type LogMessage struct {
// contains filtered or unexported fields
}
type TimeProvider ¶
Click to show internal directories.
Click to hide internal directories.