yq

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Yq

type Yq interface {
	// Write updates a file based on a yq expression. I.e. it runs `yq eval --inplace <expression> <file>`
	Write(expression string, targetFile string) error
}

Yq is for running `yq` commands. It's useful for updating YAML files without stripping comments or formatting.

func New

func New(runner shell.Runner) Yq

Jump to

Keyboard shortcuts

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