yq

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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