1 | #! /usr/bin/env node
|
2 |
|
3 | const program = require('commander')
|
4 | const { getPkgVersion } = require('../dist/util')
|
5 |
|
6 | program
|
7 | .version(getPkgVersion(), '-v, --version')
|
8 | .usage('<command> [options]')
|
9 | .command('init [projectName]', '创建默认项目')
|
10 | .command('build', 'Build a project with options')
|
11 | .command('update', '更新Sbyerh')
|
12 | .command('doctor', 'Diagnose syberh project')
|
13 | .command('simulator', 'Start the simulator')
|
14 | .command('install', 'Install sdk and target')
|
15 | .parse(process.argv)
|