Interface ICommandValidator
- Namespace
- McMaster.Extensions.CommandLineUtils.Validation
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Provides validation on a command
public interface ICommandValidator
Methods
GetValidationResult(CommandLineApplication, ValidationContext)
Validates a command
ValidationResult? GetValidationResult(CommandLineApplication command, ValidationContext context)
Parameters
commandCommandLineApplicationThe command.
contextValidationContextThe validation context.
Returns
- ValidationResult
The validation result. Returns Success if the values pass validation.