@wcauchois/program-builder > ProgramBuilder > bind

ProgramBuilder.bind() method

Bind the ProgramBuilder to an action and return a ProgramWithAction suitable for use constructing subcommands.

Signature:
bind(action: ProgramMain<T>): ProgramWithAction<T>;

Parameters

ParameterTypeDescription
actionProgramMain<T>
Returns:

ProgramWithAction<T>