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

[feature request] New merge type that doesn't require a file #38

Open
gdankov opened this issue May 8, 2019 · 0 comments
Open

[feature request] New merge type that doesn't require a file #38

gdankov opened this issue May 8, 2019 · 0 comments

Comments

@gdankov
Copy link
Contributor

gdankov commented May 8, 2019

Hey Julz,

The suggestion here is to perform a standard merge, but instead of having to always specify files in the with section, we can directly write the yaml code we would like to merge.

For example, let's say we have the following aviator file:

spruce:
- base: path/to/base.yml
  merge:
  - with_obj:
    foo:
      bar: 42
      baz: true
  to: result.yml

That would merge the base file with the following:

foo:
  bar: 42
  baz: true

Why? Sometimes you want to merge something really tiny (2-3 lines) and creating a separate file for that can be an overkill.

Thanks 🙂

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

No branches or pull requests

1 participant