Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array merge strategies #68

Open
nhomble opened this issue Jul 5, 2021 · 0 comments
Open

array merge strategies #68

nhomble opened this issue Jul 5, 2021 · 0 comments

Comments

@nhomble
Copy link

nhomble commented Jul 5, 2021

Could the cli accept some argument (or env var) to adjust the array merge strategy? I would expect an array to be entirely overridden and this is a pattern I see in springframework. I am sure other people will have opinions and this problem has already come up in #12

$ cat a.yml
a: [1, 2, 3]
$ cat b.yml
a: [4, 5, 6]
$ yaml-merge a.yml b.yml
a:
  - 1
  - 2
  - 3
  - 4
  - 5
  - 6

I would have expected

a: 
  - 4
  - 5
  - 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant