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
2019-08-13 11:58:51 +08:00

18 lines
440 B
JavaScript
Executable File

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