@black-flag/core • Docs
@black-flag/core / index / ConfigureExecutionEpilogue
ConfigureExecutionEpilogue<
CustomContext
>: (argv
,context
) =>Promisable
<Arguments
>
This function is called once after CLI argument parsing completes and either
(1) handler execution succeeds or (2) a GracefulEarlyExitError
is thrown.
The value returned by this function is used as the return value of the
PreExecutionContext::execute
method. This function will not be called
when yargs argument validation fails.
This function is the complement of ConfigureExecutionPrologue.
• CustomContext extends ExecutionContext
= ExecutionContext
• argv: Arguments
• context: CustomContext
Promisable
<Arguments
>