-
Notifications
You must be signed in to change notification settings - Fork 147
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
Parameter validation #662
Labels
Comments
Hey @joe307bad, I appreciate you asking! This has been a somewhat common feature request and we don't have anything built-in. There is this PR (#464) which has some context. Check that and see what you might be willing to work on! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there, I am building a CLI tool with Gluegun and I was wondering if there is any best practice around validating parameters. Right now I am implementing something like this:
And
validator
is a function that loops through the givenvalidators
and produces a collection of errors to display to the user.Questions:
Thanks! I love the project!
The text was updated successfully, but these errors were encountered: