Why can't I use validations on environment_variables in bashly.yml #545
Answered by DannyBen
ichoosetoaccept asked this question in Q&A
-
Bashly supports validations for arguments and flag arguments but not for environment variables. Why?
This would save me from having to write my own "folder exists" validation function.. unless I'm missing something? Thanks for reading! |
Beta Was this translation helpful? Give feedback.
Answered by DannyBen Aug 14, 2024
Replies: 2 comments 6 replies
-
I need to look into it. I don't remember if the omission was intentional or not. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I worked around it by doing this:
Seems a bit hacky but I guess it does work :) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Hacky. I have implemented it in #546.
Initial implementation works, I just need now to complete tests, docs etc.
Will be available soon.
One thing it raises - the custom strings file is showing its age. I will need to normalize it (read: rename some keys) - but this will be a breaking change for a future release.