merger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeAllDocs

func MergeAllDocs(files []YamlFile, options MergeOpts) (*spruce.Evaluator, error)

Types

type MergeOpts

type MergeOpts struct {
	SkipEval       bool               `goptions:"--skip-eval, description='Do not evaluate spruce logic after merging docs'"`
	Prune          []string           `goptions:"--prune, description='Specify keys to prune from final output (may be specified more than once)'"`
	CherryPick     []string           `` /* 142-byte string literal not displayed */
	FallbackAppend bool               `` /* 149-byte string literal not displayed */
	EnableGoPatch  bool               `goptions:"--go-patch, description='Enable the use of go-patch when parsing files to be merged'"`
	MultiDoc       bool               `goptions:"--multi-doc, -m, description='Treat multi-doc yaml as multiple files.'"`
	Help           bool               `goptions:"--help, -h"`
	Files          goptions.Remainder `goptions:"description='List of files to merge. To read STDIN, specify a filename of \\'-\\'.'"`
}

type RootIsArrayError

type RootIsArrayError struct {
	// contains filtered or unexported fields
}

func (RootIsArrayError) Error

func (r RootIsArrayError) Error() string

type YamlFile

type YamlFile struct {
	Path   string
	Reader io.ReadCloser
}

func LoadYamlFile added in v0.0.2

func LoadYamlFile(file string) (YamlFile, error)

Jump to

Keyboard shortcuts

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