UNPKG

birla

Version:

CLI tool to easily create new file-structure scaffolds from template directories.

15 lines (12 loc) 469 B
#! /usr/bin/env node const program = require('commander'); const birla = require('./birla'); program .arguments('<dest>') .option('-n, --name <name>', 'The value of $NAME') .option('-t, --template <template>', 'The name of template to use from birla-templates') .option('-p, --path-template [pathTemplate]', 'The path of birla-templates') .action(dest => { birla(program.name, program.template, dest, program.pathTemplate); }) .parse(process.argv);