config

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDiffFound = errors.New("DiffFound")
View Source
var ErrNoDiffCommand = errors.New("NoDiffCommand")

Functions

This section is empty.

Types

type Config

type Config struct {
	Context           int
	Separator         string
	Indent            int
	Out               string
	Debug             bool
	Quiet             bool
	Color             bool
	DiffSuccess       bool
	AllowDuplicateKey bool
	DiffCommand       string
	Verbose           bool
	Labels            []string
}

func (*Config) OutMode

func (c *Config) OutMode() OutMode

func (*Config) Run

func (c *Config) Run(w io.Writer, left, right string) error

type OutMode

type OutMode string
const (
	OutModeUnknown OutMode = "unknown"
	OutModeText    OutMode = "text"
	OutModeYaml    OutMode = "yaml"
	OutModeID      OutMode = "id"
	OutModeIDList  OutMode = "idlist"
)

Jump to

Keyboard shortcuts

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