Method Validate
- Namespace
- Ploch.CommandLine.Spectre.Commands
- Assembly
- Ploch.CommandLine.Spectre.dll
Validate(CommandContext, TSettings)
Validates the command settings.
ValidationResult Validate(CommandContext context, TSettings settings)
Parameters
contextCommandContextThe command context containing execution information.
settingsTSettingsThe command settings to validate.
Returns
- ValidationResult
A Spectre.Console.ValidationResult indicating whether the validation succeeded or failed. If validation fails, the result contains error information.