proto-update-tool 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.proto.config.json +16 -0
- package/bin/index.js +6 -2
- package/bin/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"repository": "git@gitlab.playnexx.net:playdayyactive/pa-grpc.git",
|
|
4
|
+
"ref": "origin/versions/1.1.0",
|
|
5
|
+
"outDir": "gen",
|
|
6
|
+
"fileFilter": "/\\.ts$/",
|
|
7
|
+
"destPath": "proto1/pa-grpc"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"repository": "git@gitlab.playnexx.net:merge-cd/mc-protobuf.git",
|
|
11
|
+
"ref": "origin/versions/1.1.0",
|
|
12
|
+
"outDir": "gen",
|
|
13
|
+
"fileFilter": "/\\.ts$/",
|
|
14
|
+
"destPath": "proto1/mccd-proto"
|
|
15
|
+
}
|
|
16
|
+
]
|
package/bin/index.js
CHANGED
|
@@ -6,13 +6,17 @@ const package_json_1 = require("../package.json");
|
|
|
6
6
|
const git_factory_1 = require("./git.factory");
|
|
7
7
|
async function bootstrap() {
|
|
8
8
|
const program = new commander_1.Command();
|
|
9
|
-
program.
|
|
10
|
-
.name('Proto 助手')
|
|
9
|
+
program.name('Proto 助手')
|
|
11
10
|
.description('通过 Gitlab SSH 拉取 Proto 配置')
|
|
11
|
+
.option('-v, --version', '显示版本')
|
|
12
12
|
.option('-h, --help', '显示帮助信息')
|
|
13
13
|
.option('-p, --path <path>', '指定 Proto 配置文件路径', './.proto.config.json')
|
|
14
14
|
.parse(process.argv);
|
|
15
15
|
const options = program.opts();
|
|
16
|
+
if (options.version) {
|
|
17
|
+
console.log(package_json_1.version);
|
|
18
|
+
process.exit(0);
|
|
19
|
+
}
|
|
16
20
|
if (options.help) {
|
|
17
21
|
program.outputHelp();
|
|
18
22
|
process.exit(0);
|
package/bin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,yCAAoC;AACpC,kDAA0C;AAC1C,+CAA2C;AAE3C,KAAK,UAAU,SAAS;IACpB,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;IAE9B,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,yCAAoC;AACpC,kDAA0C;AAC1C,+CAA2C;AAE3C,KAAK,UAAU,SAAS;IACpB,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;IAE9B,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,2BAA2B,CAAC;SACxC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC;SAC/B,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC;SAC9B,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,CAAC;SACtE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAC/B,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,sBAAO,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,UAAU,EAAE,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,sBAAsB,CAAC;IACpD,IAAG,IAAI;QAAE,IAAA,wBAAU,EAAC,IAAI,CAAC,CAAC;IAC1B,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -7,14 +7,18 @@ import { gitFactory } from "./git.factory";
|
|
|
7
7
|
async function bootstrap() {
|
|
8
8
|
const program = new Command();
|
|
9
9
|
|
|
10
|
-
program.
|
|
11
|
-
.name('Proto 助手')
|
|
10
|
+
program.name('Proto 助手')
|
|
12
11
|
.description('通过 Gitlab SSH 拉取 Proto 配置')
|
|
12
|
+
.option('-v, --version', '显示版本')
|
|
13
13
|
.option('-h, --help', '显示帮助信息')
|
|
14
14
|
.option('-p, --path <path>', '指定 Proto 配置文件路径', './.proto.config.json')
|
|
15
15
|
.parse(process.argv);
|
|
16
16
|
|
|
17
17
|
const options = program.opts();
|
|
18
|
+
if (options.version) {
|
|
19
|
+
console.log(version);
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}
|
|
18
22
|
if (options.help) {
|
|
19
23
|
program.outputHelp();
|
|
20
24
|
process.exit(0);
|