An interface used to define Commands.
Implements: 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.
Instance methods
get_name
Gets the command name.
get_name(): str
- returns: str - the command name.
validate
Validates command arguments before execution using a defined schema.
validate(args: Parameters): List[ValidationResult]
- args: Parameters - the parameters (arguments) to validate.
- returns: List[ValidationResult] - the command name.