pip_services3_commons.commands.ICommand module
pip_services3_commons.commands.ICommand
Interface for commands.
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_commons.commands.ICommand.
ICommand
Bases:
pip_services3_commons.run.IExecutable.IExecutable
An interface for Commands, which are part of the Command design pattern. Each command_name wraps a method or function and allows to call them in uniform and safe manner.
-
validate
(args: pip_services3_commons.run.Parameters.Parameters) → List[pip_services3_commons.validate.ValidationResult.ValidationResult] Validates command_name arguments before execution using defined schema.
- Parameters
args – the parameters (arguments) to validate.
- Returns
a list of validation results
-