Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1 KB

jx-gitops_yset.md

File metadata and controls

39 lines (25 loc) · 1 KB

jx-gitops yset

Modifies a value in a YAML file at a given path expression while preserving comments

Usage

jx-gitops yset

Synopsis

Modifies one or more yaml files using a path expression while preserving comments

Examples

sets the foo.bar=abc in the files *.yaml

jx gitops yset --path foo.bar --value abc *.yaml

sets the foo.bar=abc in the file foo.yaml

jx gitops yset --path foo.bar --value abc --file foo.yaml

sets the foo.bar=abc in the file foo.yaml and bar.yaml

jx gitops yset --path foo.bar --value abc --file bar.yaml --file foo.yaml%!(EXTRA string=jx-gitops, string=jx-gitops)

Options

  -f, --file stringArray   the file(s) to process
  -h, --help               help for yset
  -p, --path string        the path expression to modify (separated by dots)
  -v, --value string       the value to modify

SEE ALSO

  • jx-gitops - commands for working with GitOps based git repositories
Auto generated by spf13/cobra on 5-Oct-2022