You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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!
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: