A command is a binding between a string and one or more steps that operate sequentially on the same context.

Type Parameters

  • C extends object

Hierarchy (view full)

Constructors

Properties

args: string
ended?: number | false = false
failed?: Error
info: string
name: string
result?: C
started?: number | false = false
steps: Step<C, unknown>[]

Accessors

  • get longestName(): number
  • Returns number

  • get took(): string
  • Returns string

Methods

  • Returns void

  • Returns number

  • Parameters

    • failed: Error

    Returns number

  • Run the command with the specified arguments.

    Parameters

    • args: string[] = ...
    • context: any = ...

    Returns Promise<unknown>

  • Returns number

  • Parameters

    • result: C

    Returns number

Generated using TypeDoc