@jasondark/proompt
Version:
CLI tool for running AI prompts with structure and repeatability
20 lines • 850 B
TypeScript
import { Command } from 'commander';
import { z } from 'zod';
import { CommandArgument, CommandHandler, CommandModule } from './types';
/**
* Create a command module with type safety and schema validation
*/
export declare const createCommandModule: <T extends z.ZodSchema>(config: {
name: string;
description: string;
arguments?: CommandArgument[];
}, argsSchema: T, proomptContent: string, customHandler?: CommandHandler) => CommandModule;
/**
* Replace template variables in content with provided arguments
*/
export declare const replaceVariables: (content: string, args: Record<string, unknown>) => string;
/**
* Add command module to Commander program with automatic option generation
*/
export declare const registerCommandModule: (program: Command, module: CommandModule) => void;
//# sourceMappingURL=command-utils.d.ts.map