UNPKG

templates-mo

Version:

Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting

29 lines (26 loc) • 602 B
#!/usr/bin/env node /* eslint-disable no-unused-expressions */ import yargs from 'yargs/yargs'; import { commands } from './commands'; import { middleware } from './middleware'; // eslint-disable-next-line no-unused-expressions yargs(process.argv.slice(2)) .options({ verbose: { alias: 'v', describe: 'More in-depth logging', type: 'boolean', required: false, default: false, }, env: { describe: 'Load environment variables from a .env file', type: 'boolean', required: false, default: true, }, }) .middleware(middleware) .command(commands) .help() .parse();