config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ignore       []string `yaml:"ignore"`
	MaxDiffSize  int      `yaml:"max_diff_size"`
	OutputFormat string   `yaml:"output_format"`
	// contains filtered or unexported fields
}

Config represents the .intent-diff.yml configuration file.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a Config with sensible defaults.

func Load

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

Load reads the config from the given path, falling back to defaults for missing fields.

func (*Config) ShouldIgnore

func (c *Config) ShouldIgnore(path string) bool

ShouldIgnore returns true if the given path matches any ignore pattern.

Jump to

Keyboard shortcuts

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