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
contextCommandContextThe command context.
settingsTSettingsThe 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.