Documentation
¶
Overview ¶
Package merge provides the core configuration merging logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶ added in v0.2.0
type Options struct {
// PreserveUnknown keeps keys that exist only in the current (live) file.
//
// When false, the managed config is the whole truth: a key survives only if
// the script declares it or an ignore path names it, and anything else the
// app wrote is dropped. That makes the ignore list load-bearing -- you must
// predict every key the app might invent, or lose it on the next apply.
//
// When true, an unrecognized key is preserved instead of destroyed. The
// trade-off is that removing a key from the script no longer removes it from
// the file; a stale key lingers until deleted explicitly. That is a visible,
// recoverable failure, where silently discarding a user's settings is not.
PreserveUnknown bool
}
Options configures merge behavior.
Click to show internal directories.
Click to hide internal directories.