An interface used to define Commands.
Inherits: IExecutable
Description
The ICommand interface is used to define Commands. Each command wraps a method or function and allows to call them in a uniform and safe manner.
Properties
Name
Gets the command name.
public
string Name { get; }
Schema
Gets the command schema.
public Schema Schema { get; }
Instance methods
Validate
Validates command arguments before execution using a defined schema.
IList<ValidationResult> Validate(args: Parameters)
- args: Parameters - parameters (arguments) to validate.
- returns: ValidationResult[] - command name.