companienv icon indicating copy to clipboard operation
companienv copied to clipboard

Suggestion: Allow RegEx Compare for "only-if"

Open EvilBMP opened this issue 3 years ago • 0 comments

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?

EvilBMP avatar Mar 18 '21 09:03 EvilBMP