kawkab-frontend
Version:
Kawkab frontend is a frontend library for the Kawkab framework
11 lines (10 loc) • 400 B
JavaScript
import { generateFile } from '../utils/stub.js';
export function makeConfigCommand(program) {
program
.command('make:config <name> [module]')
.description('Create a new config file in a specific module')
.action((name, module = 'main') => {
const targetPath = `app/${module}/config/${name}.ts`;
generateFile('config.stub', targetPath, { name });
});
}