Table of Contents

Method Validate

Namespace
Ploch.CommandLine.Spectre.FluentValidation
Assembly
Ploch.CommandLine.Spectre.FluentValidation.dll

Validate(CommandContext, TSettings)

Validates the command settings using FluentValidation.

public ValidationResult Validate(CommandContext context, TSettings settings)

Parameters

context CommandContext

The command context.

settings TSettings

The settings to validate.

Returns

ValidationResult

A Spectre.Console.ValidationResult indicating whether validation was successful. If no FluentValidator was provided, falls back to the built-in validation.