yq

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(expression string, options Options, files ...string) (string, error)

Eval runs yq and evaluates the given expression on the given files.

Types

type Options

type Options struct {

	// All implies eval-all: the evaluation loads all yaml documents of all yaml files and runs the
	// expression once. If false (the default), the evaluation iterates over each yaml document from
	// each given file, applies the expression and prints the result in sequence.
	All bool

	// InPlace implies that, for mutating operations, mutations will happen in-place and modify the
	// original file.
	InPlace bool
}

Jump to

Keyboard shortcuts

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