internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() error

func NewModel

func NewModel(cancel context.CancelFunc, g glob.Glob, themeOverride string) model

func RunAll

func RunAll(m model, p *tea.Program, context context.Context)

func WatchForChanges

func WatchForChanges(m model, p *tea.Program, ctx context.Context) []*fsnotify.Watcher

func WatchForTriggers added in v0.5.0

func WatchForTriggers(m model, p *tea.Program, ctx context.Context)

Types

type Command

type Command struct {
	ID          int
	Cmd         string   `yaml:"cmd" validate:"required"`
	WatchPaths  []string `yaml:"watch_paths" validate:"required"`
	IgnorePaths []string `yaml:"ignore_paths,omitempty"`
}

type CommandConfig added in v0.6.0

type CommandConfig struct {
	Commands []Command `yaml:"commands"`
}

type Config

type Config struct {
	ThemePreset string `yaml:"theme_preset"`
	ThemeConfig Theme  `yaml:"theme"`
}

type Status

type Status int
const (
	Pending Status = iota
	Succeeded
	Failed
)

func (Status) String

func (s Status) String() string

type Theme added in v0.6.0

type Theme struct {
	Foreground string `yaml:"foreground"`
	Primary    string `yaml:"primary"`
	Secondary  string `yaml:"secondary"`
	Tertiary   string `yaml:"tertiary"`
	Neutral    string `yaml:"neutral"`
}

Jump to

Keyboard shortcuts

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