Skip to content

Option to recursively merge content of multiple config.yml files #497

Description

@NovaNekmit

Currently, merge! is used for every supplied config file, which works good for most things, but "appending" to treat_as or unity_helpers won't work, which prevents effective composing.

Another command line flag (maybe -m for "merge", or -a for "append"), which recurses into the the options to append arrays and merge hashes (instead of overwriting) would help with that.

Alternatively, a special value in the "overlay file" that the merge logic interprets as "keep existing values" would also work.

For context, I am working with a modular project and want to avoid "leaking" types into other modules.

My current workaround is supplying --unity-helpers=shared/unity_helpers.h;module_a/unity_helpers.h as command line argument, and using macros inside the unity_helper in place of treat_as.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions