Function: buildCommand()
buildCommand<
FLAGS
,ARGS
,CONTEXT
>(builderArgs
):Command
<CONTEXT
>
Build command from loader or local function as action with associated parameters and documentation.
Type Parameters
• FLAGS extends Readonly
<Partial
<Record
<keyof FLAGS
, unknown
>>>
• ARGS extends BaseArgs
• CONTEXT extends CommandContext
= CommandContext
Parameters
• builderArgs: CommandBuilderArguments
<FLAGS
, ARGS
, CONTEXT
>
Returns
Command
<CONTEXT
>