@wcauchois/program-builder > ProgramBuilder > buildWithSubcommands

ProgramBuilder.buildWithSubcommands() method

Build a ProgramWithSubcommands using a map of ProgramWithActions as created by calling ProgramBuilder.bind.

Signature:
static buildWithSubcommands(subcommandMap: ProgramSubcommandMap, metadata?: IProgramWithSubcommandsMetadata): ProgramWithSubcommands;

Parameters

ParameterTypeDescription
subcommandMap
ProgramSubcommandMap
metadata
IProgramWithSubcommandsMetadata
Returns:

ProgramWithSubcommands