Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Command

Hierarchy

Index

Constructors

constructor

  • new Command(name: string, usageHelp: string, description: string): Command

Properties

Private description

description: string

Private name

name: string

Private options

options: CommandOption[]

Private usageHelp

usageHelp: string

Methods

Protected addOption

getDescription

  • getDescription(): string

getName

  • getName(): string

getOptions

getUsageHelp

  • getUsageHelp(): string

run

  • run(result: Result): Promise<void>
  • Runs the command

    Parameters

    • result: Result

    Returns Promise<void>

Generated using TypeDoc