Custom Validation of flags #1954
Unanswered
shrimalmadhur
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
@shrimalmadhur which version are you using ? v2 doesnt have any explicit validation support while v3 has support for specifying a validation function for each flag |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am doing a lot of custom validation of the flags I use in my CLI App. I end up adding those validation in
Actionwhich kinds of bloats up the action. I am wondering what's the best way to do it. Should this be a feature on the flag itself that someone can add a custom validation code and then it runs while reading the flag value?Beta Was this translation helpful? Give feedback.
All reactions