-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Allow importing a file only if a condition is met. For example:
# @import(./.env.some-file, enabled=eq(SOME_VAR, "some val")
# ---
Proposed Solution
Add a new enabled property to the @import decorator which will decide whether or not to proceed based on some boolean.
Alternatives
Currently, you could always import the file and use @disabled
Alternatively, we could think about introducing a higher level if block concept, that could enable/disable multiple arbitrary lines within the env file. Not sure it is worth the complexity.
philmillman
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request