Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandProfileLoader

The command processor profile loader loads all profiles that are required (or optional) given a command definitions requirements. It returns the CommandProfiles object (which contains the map and getters for the command handlers usage).

export

Hierarchy

  • CommandProfileLoader

Index

Constructors

constructor

Properties

Private mCommandDefinition

mCommandDefinition: ICommandDefinition

The input command definition for the command being issued.

memberof

CommandProfileLoader

Private mFactory

The factory for getting profile manager instances.

memberof

CommandProfileLoader

Private mLog

mLog: Logger

Logger - supplied on the constructor - but defaults to the Imperative logger.

memberof

CommandProfileLoader

Accessors

Private definition

Private factory

Private log

Methods

Private buildCommandMap

Private buildCommandMetaMap

Private buildLoad

  • buildLoad(optional: boolean, types: string[], commandArguments: Arguments): ICommandLoadProfile[]

Private constructLoadList

Private loadAll

loadProfiles

  • Load the profiles for the command - the command arguments are supplied to grab the profile names from the arguments supplied by the user.

    memberof

    CommandProfileLoader

    Parameters

    • commandArguments: Arguments

      The command arguments supplied on this command invocation (Yargs style)

    Returns Promise<CommandProfiles>

    • The promise is fulfilled with the map object OR rejected with an Imperative error

Static loader

Generated using TypeDoc