config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigVersion = 2

ConfigVersion tracks the config schema version for one-time migrations. Bump this when adding migrations in Load().

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version int               `toml:"config_version"`
	Seal    SealSection       `toml:"seal"`
	Sync    SyncSection       `toml:"sync"`
	Include PatternSection    `toml:"include"`
	Exclude PatternSection    `toml:"exclude"`
	Merge   map[string]string `toml:"merge_strategies"`
}

func DefaultConfig

func DefaultConfig(claudeDir, sealDir string) *Config

func Load

func Load(sealDir string) (*Config, error)

func (*Config) Save

func (c *Config) Save(sealDir string) error

type PatternSection

type PatternSection struct {
	Patterns []string `toml:"patterns"`
}

type SealSection

type SealSection struct {
	ClaudeDir string `toml:"claude_dir"`
	SealDir   string `toml:"seal_dir"`
	DeviceID  string `toml:"device_id"`
}

type SyncSection

type SyncSection struct {
	AutoSealOnSessionEnd     bool `toml:"auto_seal_on_session_end"`
	AutoUnsealOnSessionStart bool `toml:"auto_unseal_on_session_start"`
	AutoPush                 bool `toml:"auto_push"`
	AutoPull                 bool `toml:"auto_pull"`
}

Jump to

Keyboard shortcuts

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