Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cli

Hierarchy

  • Cli

Index

Properties

Protected _argv

_argv: string[]

Protected _parsedCommands

_parsedCommands: CommandConfig[] = []

Protected _rootCommand

_rootCommand: CommandConfig

Protected _runningCommand

_runningCommand: CommandConfig

config

config: Config

events

events: Dispatcher

Protected globalOptions

globalOptions: OptionConfig[] = []

helpers

helpers: Helpers

log

log: Log

parseCommands

parseCommands: boolean = true

Accessors

argv

  • get argv(): string[]
  • Returns string[]

getSubCommands

parseArguments

parsedCommands

rootCommand

runningCommand

transformOptions

Methods

configure

  • Parameters

    Returns this

Protected executeCommand

  • Parameters

    Returns Promise<void>

fail

  • fail(msg?: string): void
  • Parameters

    • Optional msg: string

    Returns void

global

  • Parameters

    Returns this

  • Parameters

    Returns this

globals

  • Parameters

    Returns this

helper

  • Parameters

    Returns this

parse

  • Parameters

    Returns this

start

  • start(requirePath: string): this
  • Parameters

    • requirePath: string

    Returns this

use

  • use<T>(plugin: Plugin<T>): void
  • Type parameters

    Parameters

    Returns void

useArgv

  • useArgv(argv: string[]): this
  • Parameters

    • argv: string[]

    Returns this

Generated using TypeDoc