Options
All
  • Public
  • Public/Protected
  • All
Menu

Class YargsConfigurer

Before invoking commands, this class configures some settings and callbacks in Yargs, including what happens on syntax failures.

Hierarchy

  • YargsConfigurer

Index

Constructors

constructor

Properties

Private commandLine

commandLine: string

Private commandRespParms

commandRespParms: ICommandResponseParms

Private envVariablePrefix

envVariablePrefix: string

Private experimentalCommandDescription

experimentalCommandDescription: string

Private helpGeneratorFactory

helpGeneratorFactory: IHelpGeneratorFactory

Private promptPhrase

promptPhrase: string

Private rootCommand

rootCommand: ICommandDefinition

Private rootCommandName

rootCommandName: string

Private yargs

yargs: any

Methods

Private buildFailedCommandDefinition

Private buildFailureMessage

  • buildFailureMessage(closestCommand?: string): string

configure

  • configure(): void

Private getClosestCommand

  • getClosestCommand(attemptedCommand: string): any

Private getResponseFormat

Object literals

Static Readonly yargsConfiguration

yargsConfiguration: object

parse-numbers

parse-numbers: false = false

parse-positional-numbers

parse-positional-numbers: false = false

Generated using TypeDoc