@incidental/project-templates
Version:
Claude Code template library for JavaScript projects with framework auto-detection
18 lines (13 loc) • 464 B
JavaScript
import { logger } from '../utils/logger.js';
import TemplateInstaller from '../installers/template-installer.js';
export async function listCommand(options) {
logger.header('📋 Available Templates');
const installer = new TemplateInstaller();
try {
await installer.listTemplates(options.type, options.framework);
} catch (error) {
logger.error(`Failed to list templates: ${error.message}`);
throw error;
}
}
export default listCommand;