Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Allow RegEx Compare for "only-if" #29

Open
EvilBMP opened this issue Mar 18, 2021 · 0 comments
Open

Suggestion: Allow RegEx Compare for "only-if" #29

EvilBMP opened this issue Mar 18, 2021 · 0 comments

Comments

@EvilBMP
Copy link

EvilBMP commented Mar 18, 2021

Hi,

in our projects we have an environment variable for the system context, which can have values like: Production, Development OR Development/Staging or Development/Local/UserX

So, if I want to promote an ENV var only in every Development/Local/* scenario, it would be nice, if the only-if feature would allow regex compare.

Like:

#+only-if(SOME_ENV_VAR_FOR_LOCAL_CONTEXT_ONLY):(CONTEXT~'/^Development\/Local/')

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant