-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use Cobra functionality to validate arguments. #1125
Labels
code health
Improve code readability, simplify maintenance and so on
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cobra's Command has built-in functionality to perform arguments validation. Some commands use it, but some doesn't. One of the reason might be in that Cobra's validation errors are displayed as ordinary text and often look unnoticeable while general logger errors are displayed as red bold text. Consider making Cobra's errors look similar to general logger errors.
The text was updated successfully, but these errors were encountered: