Root decorator to apply multiple values #209
Closed
theoephraim
started this conversation in
New Features
Replies: 1 comment
-
|
This is implemented - see https://varlock.dev/reference/root-decorators/#setvaluesbulk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently when pulling data from an external source, we must wire up individual items one by one. In many cases, you may already have items labeled correctly on the remote storage, and you just want to apply many values at once. This could be for example a
.envstyle blob, or any key-value storage.Rather than having each plugin have to reimplement this kind of functionality, the plugin should just focus on fetching the data, and then we can use a built-in root decorator to apply the values. This would be a new root decorator, for example
@applyValuesand it should be able to take data in different formats (at least .env and json for now).The values applied would have more precedence than values within the file.
We could also want a toggle for whether to set values for new keys that dont already exist in the schema or not.
Please suggest alternative names or any other ideas!
Note that this will be useful once 1Password adds support to fetch environments data within their SDKs.
Beta Was this translation helpful? Give feedback.
All reactions