Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.22 KB

ConfigureExecutionEpilogue.md

File metadata and controls

35 lines (20 loc) · 1.22 KB

@black-flag/coreDocs


@black-flag/core / index / ConfigureExecutionEpilogue

Type Alias: ConfigureExecutionEpilogue()<CustomContext>

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.

Type Parameters

CustomContext extends ExecutionContext = ExecutionContext

Parameters

argv: Arguments

context: CustomContext

Returns

Promisable<Arguments>

Defined in

types/configure.ts:64