2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
books/cli.js
Rushabh Mehta 077d098599 whitespace
2018-02-21 15:13:21 +05:30

13 lines
366 B
JavaScript
Executable File

#!/usr/bin/env node
const program = require('commander');
const process = require('process');
const boilerplate = require('frappejs/model/boilerplate');
program.command('new-model <name>')
.description('Create a new model in the `models/doctype` folder')
.action((name) => {
boilerplate.make_model_files(name);
});
program.parse(process.argv);