config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package config loads synac settings.

Index

Constants

View Source
const (
	SourceGithub = "github"
	SourceAgents = "agents"
	SourceClaude = "claude"
	SourceOff    = "off"
)

Source values for sync origins.

View Source
const (
	LogFormatConsole = "console"
	LogFormatJSON    = "json"
)

LogFormat values for log output.

Variables

This section is empty.

Functions

func Validate

func Validate(cfg Config) error

Validate checks source selections and log format.

Types

type Config

type Config struct {
	Root               string `mapstructure:"-"` // Stays out of the config file to keep relative resolution unambiguous.
	Version            bool   `mapstructure:"-"` // Stays out of the config file because it is a CLI-only flag.
	DryRun             bool   `mapstructure:"dry-run"`
	LogFormat          string `mapstructure:"log-format"`
	ProjectWideSource  string `mapstructure:"project-wide-source"`
	PathSpecificSource string `mapstructure:"path-specific-source"`
	SkillsSource       string `mapstructure:"skills-source"`
}

Config holds synac settings.

func Load

func Load(args []string) (Config, error)

Load parses flags, environment, and config file into a Config.

Jump to

Keyboard shortcuts

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