vibe-cli-tool
Version:
VibeCLI v1.9 - 模板商店生态,智能部署生成,多语言支持,交互式学习系统,企业级Web全栈应用CLI工具
16 lines • 659 B
JavaScript
import chalk from 'chalk';
import { publishTemplate } from '../utils/template-publisher.js';
import path from 'path';
export async function publishTplCmd(templateDir, options) {
try {
const absTemplatePath = path.resolve(templateDir);
const registryRoot = path.resolve('templates');
await publishTemplate({ templatePath: absTemplatePath, registryRoot, validateOnly: options.validateOnly });
console.log(chalk.green('Template publish workflow completed'));
}
catch (err) {
console.error(chalk.red('Publish failed:'), err.message);
process.exit(1);
}
}
//# sourceMappingURL=publish-template.js.map