Table of Contents

Method Validate

Namespace
Ploch.CommandLine.Spectre.Commands
Assembly
Ploch.CommandLine.Spectre.dll

Validate(CommandContext, TSettings)

Validates the provided command settings.

public virtual ValidationResult Validate(CommandContext context, TSettings settings)

Parameters

context CommandContext

The command context in which the validation is performed.

settings TSettings

The command settings to validate.

Returns

ValidationResult

A Spectre.Console.ValidationResult indicating whether the validation was successful or not.