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 envVariablePrefix

  • get envVariablePrefix(): string
  • Get the configured environmental variable prefix for the user's CLI

    deprecated

    Please use ImperativeConfig.instance.envVariablePrefix

    Returns string

    • the configured or default prefix for environmental variables for use in the environmental variable service

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 Private initProfiles

  • Initialize the profiles directory with types and meta files. This can be called every startup of the CLI without issue, but if the meta files or configuration changes, we'll have to re-initialize. TODO: Determine the re-initialize strategy.

    static
    memberof

    Imperative

    Parameters

    Returns Promise<void>

Static parse

Generated using TypeDoc