Documentation
¶
Index ¶
- type DockerScanner
- type GoScanner
- type JSScanner
- type MakeScanner
- type MoonScanner
- type Scanner
- type StoredTask
- type Task
- func FromStored(s StoredTask) Task
- func ScanTasks(dir string, pmOverride string) []Task
- func ScanTasksRecursive(dir string, pmOverride string) []Task
- func ScanTasksWith(dir string, scanners []Scanner) []Task
- func SortWithPreferred(tasks []Task, preferred []string) []Task
- func TasksFromStored(stored []StoredTask) []Task
- type TaskSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerScanner ¶
type DockerScanner struct{}
func NewDockerScanner ¶
func NewDockerScanner() *DockerScanner
func (*DockerScanner) Scan ¶
func (s *DockerScanner) Scan(dir string) []Task
type JSScanner ¶
type JSScanner struct {
// contains filtered or unexported fields
}
func NewJSScanner ¶
type MakeScanner ¶
type MakeScanner struct{}
func NewMakeScanner ¶
func NewMakeScanner() *MakeScanner
func (*MakeScanner) Scan ¶
func (s *MakeScanner) Scan(dir string) []Task
type MoonScanner ¶ added in v0.2.5
type MoonScanner struct{}
func NewMoonScanner ¶ added in v0.2.5
func NewMoonScanner() *MoonScanner
func (*MoonScanner) Scan ¶ added in v0.2.5
func (s *MoonScanner) Scan(dir string) []Task
type Scanner ¶
func DefaultScanners ¶
type StoredTask ¶
type StoredTask struct {
Name string `yaml:"name"`
Command string `yaml:"command"`
Source string `yaml:"source"`
Dir string `yaml:"dir,omitempty"`
}
func TasksToStored ¶
func TasksToStored(tasks []Task) []StoredTask
type Task ¶
type Task struct {
Name string
Command string
Source TaskSource
Dir string
}
func FromStored ¶
func FromStored(s StoredTask) Task
func ScanTasksRecursive ¶
func ScanTasksWith ¶
func SortWithPreferred ¶
func TasksFromStored ¶
func TasksFromStored(stored []StoredTask) []Task
func (Task) ToStored ¶
func (t Task) ToStored() StoredTask
type TaskSource ¶
type TaskSource string
const ( SourceNPM TaskSource = "npm" SourcePNPM TaskSource = "pnpm" SourceYarn TaskSource = "yarn" SourceBun TaskSource = "bun" SourceMake TaskSource = "make" SourceGo TaskSource = "go" SourceDocker TaskSource = "docker" SourceMoon TaskSource = "moon" )
Click to show internal directories.
Click to hide internal directories.