Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Imperative

Index

Properties

Static Readonly DEFAULT_DEBUG_FILE

DEFAULT_DEBUG_FILE: string = join(process.cwd(), "imperative_debug.log")

Static Private mApi

Static Private mCommandLine

mCommandLine: string

Static Private mConsoleLog

mConsoleLog: Logger

Static Private mFullCommandTree

mFullCommandTree: ICommandDefinition

Static Private mHelpGeneratorFactory

mHelpGeneratorFactory: IHelpGeneratorFactory

Static Private mRootCommandName

mRootCommandName: string

Accessors

Static api

Static commandLine

  • get commandLine(): string
  • set commandLine(args: string): void

Static console

Static fullCommandTree

Static Private log

Static rootCommandName

  • get rootCommandName(): string

Methods

Static Private addAutoGeneratedCommands

Static Private constructApiObject

Static Private constructAppLoggerApi

  • constructAppLoggerApi(): Logger

Static Private constructConsoleApi

  • constructConsoleApi(): Logger

Static Private constructDynamicLoggersApi

  • constructDynamicLoggersApi(api: any): any

Static Private constructImperativeLoggerApi

  • constructImperativeLoggerApi(): Logger

Static Private defineCommands

Static getHelpGenerator

  • Get the configured help generator for your CLI. If you have not specified a custom generator, the DefaultHelpGenerator will be used. You probably won't need to call this from your CLI, but it is used internally.

    Parameters

    Returns IHelpGenerator

    • The help generator for the command

Static Private getPreparedCmdTree

Static getProfileConfiguration

Static Private getResolvedCmdTree

Static highlightWithPrimaryColor

  • highlightWithPrimaryColor(text: string): string

Static highlightWithSecondaryColor

  • highlightWithSecondaryColor(text: string): string

Static init

Static Private initAppSettings

  • initAppSettings(): void

Static Private initLogging

  • initLogging(): void
  • Init log object such that subsequent calls to the Logger.getImperativeLogger() (or other similar calls), will contain all necessary categories for logging.

    TODO(Kelosky): handle level setting via global config (trace enabling and such)

    Returns void

Static parse

Generated using TypeDoc