config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFile         = ".engage.yaml"
	TasksDir           = "tasks"
	BacklogDir         = "tasks/backlog"
	ArchiveDir         = "tasks/archive"
	WorktreesDir       = ".worktrees"
	TemplateFile       = "tasks/template.md"
	AgentsFile         = "AGENTS.md"
	EngageWorkflowFile = "tasks/engage-workflow.md"
	OpencodeAgentsDir  = ".opencode/agents"
)

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() (string, error)

FindProjectRoot walks up the directory tree to find .git

Types

type AgentConfig

type AgentConfig struct {
	Command string   `yaml:"command"`
	Args    []string `yaml:"args"`
	Prompt  string   `yaml:"prompt"`
}

AgentConfig holds agent/runner settings

type Config

type Config struct {
	Project ProjectConfig `yaml:"project"`
	Agent   AgentConfig   `yaml:"agent"`
	Tmux    TmuxConfig    `yaml:"tmux"`
	Files   FilesConfig   `yaml:"files"`
}

Config represents the .engage.yaml configuration

func DefaultConfig

func DefaultConfig(projectName string) *Config

DefaultConfig returns a config with sensible defaults

func Load

func Load() (*Config, error)

Load reads the config from .engage.yaml or returns defaults

func (*Config) Save

func (c *Config) Save() error

Save writes the config to .engage.yaml

type FilesConfig

type FilesConfig struct {
	Symlink []string `yaml:"symlink"`
	Copy    []string `yaml:"copy"`
}

FilesConfig holds settings for file synchronization

type ProjectConfig

type ProjectConfig struct {
	Name         string `yaml:"name"`
	WorktreesDir string `yaml:"worktrees_dir"`
	MainBranch   string `yaml:"main_branch"`
}

ProjectConfig holds project-level settings

type TmuxConfig

type TmuxConfig struct {
	SessionPrefix string `yaml:"session_prefix"`
}

TmuxConfig holds tmux-related settings

Jump to

Keyboard shortcuts

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