Package sonia.scm.cli

Class CommandValidator

java.lang.Object
sonia.scm.cli.CommandValidator

public final class CommandValidator extends Object
This the command validator which should be used to validate CLI commands with Bean validation.
Since:
2.33.0
See Also:
  • 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