UNPKG

kawkab-frontend

Version:

Kawkab frontend is a frontend library for the Kawkab framework

11 lines (10 loc) 391 B
import { generateFile } from '../utils/stub.js'; export function makeUtilCommand(program) { program .command('make:util <name> [module]') .description('Create a new util file in a specific module') .action((name, module = 'main') => { const targetPath = `app/${module}/utils/${name}.ts`; generateFile('util.stub', targetPath, { name }); }); }