UNPKG

505 BPlain TextView Raw
1#! /usr/bin/env node
2
3const program = require('commander')
4const { getPkgVersion } = require('../dist/util')
5
6program
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)