Type Alias: CommandFunctionLoader()<FLAGS, ARGS, CONTEXT>
CommandFunctionLoader<
FLAGS,ARGS,CONTEXT>: () =>Promise<CommandModule<FLAGS,ARGS,CONTEXT> |CommandFunction<FLAGS,ARGS,CONTEXT>>
Asynchronously loads a function or a module containing a function to be executed by a command.
Type Parameters
• FLAGS extends BaseFlags
• ARGS extends BaseArgs
• CONTEXT extends CommandContext
Returns
Promise<CommandModule<FLAGS, ARGS, CONTEXT> | CommandFunction<FLAGS, ARGS, CONTEXT>>