ICommand

An interface used to define Commands.

Extends: IExecutable

Description

The ICommand interface is used to define Commands. Each command wraps a method or function and allows calling them in a uniform and safe manner.

Instance methods

getName

Gets the command name.

getName(): string

  • returns: string - command name.

validate

Validates command arguments before execution using a defined schema.

validate(args: Parameters): ValidationResult[]

See also