Comparing version 1.0.27 to 1.0.28
16
cli.js
#!/usr/bin/env node | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const commander_1 = require("commander"); | ||
const package_info = require("./package.json"); | ||
console.log('谢邀,人在美国,刚下飞机。'); | ||
const program = new commander_1.Command(); | ||
program | ||
.name(package_info.name) | ||
.option('-c, --config', "根据模板生成配置文件") | ||
.option('-d, --debug', '输出调试信息') | ||
.option('-g, --gen', "生成API模板") | ||
.option('-p, --publish', "发布项目") | ||
.option('-u, --upload', "上传更新文件") | ||
.option('-u2, --upload2', "上传更新文件2(shouyufilestore)") | ||
.option('-s, --sync-model', '同步ORM数据库模型(施工中)') | ||
.helpOption('-h, --help', "获取帮助信息") | ||
.version(package_info.version, "-v, --version", "获取版本信息"); | ||
program.parse(process.argv); | ||
//# sourceMappingURL=cli.js.map |
24
cli.ts
#!/usr/bin/env node | ||
import {Command} from "commander" | ||
const package_info = require("./package.json"); | ||
console.log('谢邀,人在美国,刚下飞机。'); | ||
const program = new Command(); | ||
//设定参数 | ||
program | ||
.name(package_info.name) | ||
.option('-c, --config', "根据模板生成配置文件") | ||
.option('-d, --debug', '输出调试信息') | ||
.option('-g, --gen', "生成API模板") | ||
.option('-p, --publish', "发布项目") | ||
.option('-u, --upload', "上传更新文件") | ||
.option('-u2, --upload2', "上传更新文件2(shouyufilestore)") | ||
.option('-s, --sync-model', '同步ORM数据库模型(施工中)') | ||
.helpOption('-h, --help', "获取帮助信息") | ||
.version(package_info.version, "-v, --version", "获取版本信息") | ||
// .option('-h, --help',"显示帮助命令") | ||
//解析传入参数 | ||
program.parse(process.argv); | ||
{ | ||
"name": "xiakebot", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "xiakebot", | ||
@@ -13,3 +13,8 @@ "main": "index.js", | ||
"author": "", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"@types/commander": "^2.12.2", | ||
"@types/node": "^15.0.3", | ||
"commander": "^7.2.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3567
91
3
+ Added@types/commander@^2.12.2
+ Added@types/node@^15.0.3
+ Addedcommander@^7.2.0
+ Added@types/commander@2.12.5(transitive)
+ Added@types/node@15.14.9(transitive)
+ Addedcommander@7.2.0(transitive)