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