This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-cli/index.js

20 lines
438 B
JavaScript
Raw Normal View History

2019-08-03 02:03:56 +08:00
#!/usr/bin/env node
var program = require('commander');
var program = require('commander');
program
.command('create <name>')
.option('-n, --native', 'Native')
.action(function (name, cmd) {
console.log('create ' + name + (cmd.native ? ' native' : 'js'))
})
program
.command('dev')
.action(function () {
require('./scripts/watcher')
})
program.parse(process.argv)
console.log(process.cwd())