ICommand

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.

Methods

Name

Gets the command name.

Name() string

  • returns: string - command name.

Validate

Validates command arguments before execution using defined schema.

Validate(args *run.Parameters) []*validate.ValidationResult

See also