UKHomeOffice / vault-sidekick

Vault sidekick
Apache License 2.0
195 stars 62 forks source link

Add ability to append to files #101

Open blakepettersson opened 4 years ago

blakepettersson commented 4 years ago

We have the use-case where we would like to get environment variables from multiple sources, but our apps expect to load a single .env file. In order to remedy that, I added an append flag, which is by default set to false.

This option is probably only really useful if one is using one-shot (which we're using), otherwise the results might be unexpected.

If required, I can add more tests to this PR if this patch would be interesting for you.

Constantin07 commented 3 years ago

Hi @blakepettersson , I guess your PR addresses #108 right ? I need this functionality too.