Package sonia.scm.cli
Class CommandValidator
java.lang.Object
sonia.scm.cli.CommandValidator
This the command validator which should be used to validate CLI commands with Bean validation.
- Since:
- 2.33.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommandValidator
(CliContext context, jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Execute validation and exit the command on validation failure
-
Constructor Details
-
CommandValidator
@Inject public CommandValidator(CliContext context, jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory)
-
-
Method Details
-
validate
public void validate()Execute validation and exit the command on validation failure
-