Skip to content

Commit

Permalink
Document the -a/--array argument
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Shuy <daniel_shuy@hotmail.com>
  • Loading branch information
daniel-shuy committed Nov 2, 2023
1 parent d9d6c0a commit 215dc22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ docker pull boxboat/config-merge
docker run --rm boxboat/config-merge -h
boxboat/config-merge [-fnh] file1 [file2] ... [fileN]
-f, --format json|toml|yaml whether to output json, toml, or yaml. defaults to yaml
-n --inline integer depth to start using inline notation at. defaults to 10. set to 0 to disable
-a, --array merge|overwrite|concat whether to merge, overwrite, or concatenate arrays. defaults to merge
-f, --format json|toml|yaml whether to output json, toml, or yaml. defaults to yaml
-h --help print the help message
files ending in .env and .sh will be sourced and used for environment variable substitution
files ending in .json, .js, .toml, .yaml, and .yml will be merged
Expand Down Expand Up @@ -63,6 +63,8 @@ Files ending in `.json`, `.js`, `.toml`, `.yaml`, and `.yml` are merged together

> Source properties that resolve to undefined are skipped if a destination value exists. Array and plain object properties are merged recursively. Other objects and value types are overridden by assignment. Source objects are applied from left to right. Subsequent sources overwrite property assignments of previous sources.
Use the `-a`/`--array` argument to configure the merging behavior for arrays.

## Patching

Files ending in `.patch.json`, `.patch.js`, `.patch.toml`, `.patch.yaml`, and `.patch.yml` are applied as [JSON Patch](http://jsonpatch.com/)
Expand Down

0 comments on commit 215dc22

Please sign in to comment.