@promptbook/documents
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
12 lines (11 loc) • 457 B
TypeScript
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 {};