Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Settings Settings `yaml:"settings"`
Processes map[string]Process `yaml:"processes"`
}
Config is the top-level structure parsed from lazyproc.yaml.
func (*Config) HelpEnabled ¶
HelpEnabled reports whether the help bar should be shown.
func (*Config) LabelsEnabled ¶
LabelsEnabled reports whether pane labels should be shown.
type HighlightRule ¶
HighlightRule defines a regex pattern and its associated color for output highlighting.
type Process ¶
type Process struct {
Cmd string `yaml:"cmd"`
Cwd string `yaml:"cwd"`
DependsOn []string `yaml:"depends_on"`
ReadyWhen ReadyWhen `yaml:"ready_when"`
Highlight []HighlightRule `yaml:"highlight"`
EnvFile string `yaml:"env_file"`
}
Process holds the configuration for a single managed process.
type ReadyWhen ¶
type ReadyWhen struct {
Stdout string `yaml:"stdout"`
}
ReadyWhen defines the condition under which a process is considered ready.
type Settings ¶
type Settings struct {
LogLimit int `yaml:"log_limit"`
Shell string `yaml:"shell"`
// ShowHelp controls whether the help bar is rendered at the bottom.
// Defaults to true when omitted from config.
ShowHelp *bool `yaml:"show_help"`
// ShowLabels controls whether the "processes" / process-name label row
// is rendered inside each pane. Defaults to true when omitted from config.
ShowLabels *bool `yaml:"show_labels"`
// ProcessListTitle is the title for the processes pane.
ProcessListTitle string `yaml:"process_list_title"`
}
Settings holds global lazyproc settings.
Click to show internal directories.
Click to hide internal directories.