Table of Contents

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

command CommandLineApplication

The command.

context ValidationContext

The validation context.

Returns

ValidationResult

The validation result. Returns Success if the values pass validation.