UNPKG

@promptbook/remote-server

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

12 lines (11 loc) 457 B
import type { Command as Program } from 'commander'; type actionCallbackFunction = Parameters<Program['action']>[0]; /** * Wraps action to handle error console logging and exit process with error code * * @param action Action to be wrapped in error handling * @returns Wrapped action * @private internal helper function for CLI commands */ export declare function handleActionErrors(action: actionCallbackFunction): actionCallbackFunction; export {};