Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChainedHandlerService

Service for processing chained handlers and their argument mappings.

Hierarchy

  • ChainedHandlerService

Index

Methods

Methods

Static getArguments

  • getArguments(binName: string, chainedHandlerConfigs: IChainedHandlerEntry[], handlerIndex: number, previousResponseObjects: any[], overallArguments: yargs.Arguments, logger: Logger): yargs.Arguments
  • Get the arguments for the current handler in the chain

    Parameters

    • binName: string

      name of the binary/primary command for this CLI

    • chainedHandlerConfigs: IChainedHandlerEntry[]

      the configured chained handlers.

    • handlerIndex: number

      current index into the chained handlers e.g. 0 is the first chained handler

    • previousResponseObjects: any[]

      command responses completed so far

    • overallArguments: yargs.Arguments

      arguments specified by the use for the overall chained command

    • logger: Logger

      a logger to use as we check and perform the argument mappings

    Returns yargs.Arguments

    fully mapped arguments for this command

Generated using TypeDoc