Skip to content

urfave/cli-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-validation

Library with additional validators for flag validation feature of urfave/cli (current for v3 only). Validation in urfave/cli is run only after the value has been converted from a string to the flag value type. So these validators need to focus only on validating the value, whether it be within a certain range or picked from a fixed number of values. Validation cannot be used to check slice/map length, because len can be known only after all the flags have been parsed. That kind of validation is a candidate for a Flag Action since those actions are run after all flags have been parsed

About

Library to help with flag validation of urfave/cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages