You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
359 B
19 lines
359 B
1 year ago
|
#!/usr/bin/env node
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
const sync = require("./sync");
|
||
|
const create = require("./create");
|
||
|
|
||
|
if(process.argv[2]=='create'){
|
||
|
create();
|
||
|
}else if(process.argv[2]=='sync'){
|
||
|
sync();
|
||
|
}else{
|
||
|
console.info(`
|
||
|
用法: npx platform [-options]
|
||
|
其中选项包括:
|
||
|
create 创建模版工程
|
||
|
sync 同步工程配置文件
|
||
|
`);
|
||
|
}
|