path

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 NewPathPowerUp

func NewPathPowerUp() *PathPowerUp

NewPathPowerUp creates a new PathPowerUp

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

Jump to

Keyboard shortcuts

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