Versions in this module Expand all Collapse all v0 v0.1.0 Dec 16, 2023 Changes in this version + const DefaultConfigFile + var ErrConfigNotFound = errors.New("configuration file not found") + var ErrEmptyConfig = errors.New("configuration file is empty") + var ErrInvalidConfig = errors.New("configuration file is not parsable") + func Apply(ctx context.Context, cfg *Config, runner tmux.Runner) (*tmux.Session, error) + func ConfigFileName() string + func FindConfigFile(dir string) (string, error) + type Config struct + Session SessionConfig + Tmux string + TmuxOptions []string + func FromFile(cfgPath string) (*Config, error) + func (c *Config) NumPanes() int + func (c *Config) NumWindows() int + func (c *Config) Path() string + func (c Config) Validate() error + type DecodeError struct + func (e DecodeError) Error() string + func (e DecodeError) Path() string + func (e DecodeError) Unwrap() error + type PaneConfig struct + Active bool + Command string + Commands []string + Env map[string]string + Horizontal bool + Panes []PaneConfig + Path string + Size string + func (p PaneConfig) Validate() error + type SessionConfig struct + Env map[string]string + Name string + OnAny string + OnPane string + OnWindow string + Path string + Windows []WindowConfig + func (s SessionConfig) Validate() error + type WindowConfig struct + Active bool + Command string + Commands []string + Env map[string]string + Name string + Panes []PaneConfig + Path string + func (w WindowConfig) Validate() error