Documentation
¶
Index ¶
- Constants
- type PathPowerUp
- func (p *PathPowerUp) Description() string
- func (p *PathPowerUp) GetTemplateContent() string
- func (p *PathPowerUp) Name() string
- func (p *PathPowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)
- func (p *PathPowerUp) RunMode() types.RunMode
- func (p *PathPowerUp) ValidateOptions(options map[string]interface{}) error
Constants ¶
View Source
const (
// PathPowerUpName is the unique name for the path power-up
PathPowerUpName = "path"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathPowerUp ¶
type PathPowerUp struct {
// contains filtered or unexported fields
}
PathPowerUp handles executable files by creating symlinks in ~/bin
func (*PathPowerUp) Description ¶
func (p *PathPowerUp) Description() string
Description returns a human-readable description
func (*PathPowerUp) GetTemplateContent ¶
func (p *PathPowerUp) GetTemplateContent() string
GetTemplateContent returns the template content for this power-up
func (*PathPowerUp) Name ¶
func (p *PathPowerUp) Name() string
Name returns the unique name of this power-up
func (*PathPowerUp) Process ¶
func (p *PathPowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)
Process takes executable files and creates symlink actions to ~/bin
func (*PathPowerUp) RunMode ¶
func (p *PathPowerUp) RunMode() types.RunMode
RunMode returns when this power-up should run
func (*PathPowerUp) ValidateOptions ¶
func (p *PathPowerUp) ValidateOptions(options map[string]interface{}) error
ValidateOptions checks if the provided options are valid
Click to show internal directories.
Click to hide internal directories.