The deck file patch
command allows you to add, update, or remove values from a declarative configuration file. A patch is a combination of a selector
that selects which objects to patch in the file, and a value
that contains the new value to use.
The data type of the property identified by selector
defines the merge behavior:
- For scalar values (strings, integers, booleans) the existing value is overwritten.
- For arrays, the provided values are appended to the existing array if the selector is an array.
Changes can be specified as command line arguments, or provided in a patch file that is passed to the deck file patch
command.
The deck file patch
command outputs the patched file to stdout
by default. You can provide a path to a file using -o ./config.yaml
to write the updated configuration to a file on disk.