Command line interface class.

Hierarchy

  • CLI

Constructors

  • Parameters

    Returns CLI

Properties

_app: WeakRef<App>
_loaded: undefined | boolean = undefined
commandPaths: string[] = ...

Paths to search for commands.

commands: Record<string, Command> = {}

Registered commands.

Methods

  • Parameters

    • showAll: boolean = false

    Returns Promise<void>

  • Returns Promise<void>

  • Add a command.

    Parameters

    • name: string
    • command: Command

    Returns void

  • Detect command from environment.

    Returns null | string

  • Start command line interface.

    Parameters

    • Optional command: string
    • Rest ...args: string[]

    Returns Promise<void>

Generated using TypeDoc