Sometimes a batch of environment variables need to be created to properly configure an environment. Calling a method in a loop may be problematic on some contexts, specially when a method can handle a list of variables to set internally.
Proposed Solution
As a developer, I want to just provide a list of key -> value pairs of environment variables to a method, and have it process the whole list and create the variables, so that it simplifies the automation process
Alternatives / Workarounds
No response
Acceptance Criteria
[ ] Implement a function that takes a list of structs, that has key: string, value: string and secret: boolean values.
[ ] The implemented function must make use of the previously implemented set env var method to create/update each variable on the list
Description
Sometimes a batch of environment variables need to be created to properly configure an environment. Calling a method in a loop may be problematic on some contexts, specially when a method can handle a list of variables to set internally.
Proposed Solution
As a developer, I want to just provide a list of
key -> value
pairs of environment variables to a method, and have it process the whole list and create the variables, so that it simplifies the automation processAlternatives / Workarounds
No response
Acceptance Criteria
key: string
,value: string
andsecret: boolean
values.Additional Context
Conventional Commit Context:
env-var
References
Code of Conduct
Upvote & Fund