Options
All
  • Public
  • Public/Protected
  • All
Menu

Imperative Command Definer - Defines the Imperative command objects to Yargs for processing.

Hierarchy

  • YargsDefiner

Index

Constructors

constructor

  • Build the definer - maintains the Yargs instance for all future definitions.

    Parameters

    • yargsInstance: Argv
    • primaryHighlightColor: string

      main color to highlight help text headings and other text with

    • rootCommandName: string

      the display name of the root command (e.g. "bright" or "sample-cli")

    • commandLine: string
    • envVariablePrefix: string

      the environment variable prefix

    • profileManagerFactory: IProfileManagerFactory<ICommandProfileTypeConfiguration>

      profile manager factory that can be used to instantiate new profile managers

    • helpGeneratorFactory: IHelpGeneratorFactory

      help generator factory that can be used to instantiate new help generators

    • experimentalCommandDescription: string

      optionally overridden experimental command description to propagate to yargs services

    • promptPhrase: string

    Returns YargsDefiner

Properties

Private log

log: Logger = Logger.getImperativeLogger()

Logger instance

Private mCommandLine

mCommandLine: string

Private mEnvVariablePrefix

mEnvVariablePrefix: string

Private mExperimentalCommandDescription

mExperimentalCommandDescription: string

Private mHelpFactory

mHelpFactory: IHelpGeneratorFactory

Private mPrimaryHighlightColor

mPrimaryHighlightColor: string

Private mProfileManagerFactory

Private mPromptPhrase

mPromptPhrase: string

Private mRootCommandName

mRootCommandName: string

Private mYargsInstance

mYargsInstance: Argv

The Yargs instance object used to define the commands.

Methods

define

Generated using TypeDoc