Skip to content

Use Cobra functionality to validate arguments. #1125

Closed
@elhimov

Description

@elhimov

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.

Metadata

Metadata

Assignees

Labels

code healthImprove code readability, simplify maintenance and so on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions