1 | #!/usr/bin/env node
|
2 | 'use strict'
|
3 |
|
4 | var gen = require('../index')
|
5 | , argv = require('minimist')(process.argv.slice(2))
|
6 | , type = argv.t || argv.type || 'backbone'
|
7 |
|
8 | gen({target: argv._[0], type: type}, function (context) {
|
9 | console.log('created the ' + context.PascalName + ' component')
|
10 | })
|