2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
books/cli.js

13 lines
352 B
JavaScript
Raw Normal View History

2018-01-30 13:25:48 +00:00
#!/usr/bin/env node
const program = require('commander');
const process = require('process');
2018-01-31 10:13:33 +00:00
const boilerplate = require('frappejs/models/boilerplate');
2018-01-30 13:25:48 +00:00
program.command('new-model <name>')
.description('Create a new model in the `models/doctype` folder')
.action((name) => {
2018-01-31 10:13:33 +00:00
boilerplate.make_model_files(name);
2018-01-30 13:25:48 +00:00
});
program.parse(process.argv);