Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandCollection

Hierarchy

Implements

Index

Properties

Protected _alias

_alias: Map<string, Command[]> = new Map<string, Command[]>()

Protected _commands

_commands: Map<string, Command> = new Map<string, Command>()

Methods

[Symbol.iterator]

  • [Symbol.iterator](): Iterator<Command>

add

  • Adds a command to the collection and returns true if successfully added, false otherwise.

    Parameters

    • command: Command

      The command to add.

    Returns boolean

    Either or not the command has been added.

delete

get

  • get(name: string): Command | undefined

hasAlias

  • hasAlias(alias: string): boolean

values

  • values(): IterableIterator<Command>

Generated using TypeDoc