Method Validate
- Namespace
- Ploch.CommandLine.Spectre.Commands
- Assembly
- Ploch.CommandLine.Spectre.dll
Validate(CommandContext, TSettings)
Validates the command settings using the provided validator.
public override ValidationResult Validate(CommandContext context, TSettings settings)
Parameters
contextCommandContextThe command context containing execution information.
settingsTSettingsThe settings to validate.
Returns
- ValidationResult
A ValidationResult indicating whether the settings are valid.