cueloop 0.1.0-alpha.29 → 0.1.0-alpha.30
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/package.json +4 -4
- package/src/main.ts +10 -0
- package/src/version.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cueloop",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.30",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
".": "./src/main.ts"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cueloop/schema": "0.1.0-alpha.
|
|
14
|
-
"@cueloop/daemon": "0.1.0-alpha.
|
|
15
|
-
"@cueloop/client": "0.1.0-alpha.
|
|
13
|
+
"@cueloop/schema": "0.1.0-alpha.30",
|
|
14
|
+
"@cueloop/daemon": "0.1.0-alpha.30",
|
|
15
|
+
"@cueloop/client": "0.1.0-alpha.30"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
package/src/main.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
resolveOpenTarget,
|
|
19
19
|
} from "./open-target";
|
|
20
20
|
import { sessionCommand } from "./session-commands";
|
|
21
|
+
import { CLI_VERSION } from "./version";
|
|
21
22
|
import { workingTreeDiff } from "./working-tree";
|
|
22
23
|
import { DaemonClient } from "@cueloop/daemon/client";
|
|
23
24
|
import type { ReviewSession } from "@cueloop/schema";
|
|
@@ -86,6 +87,12 @@ async function main(): Promise<number> {
|
|
|
86
87
|
const { reviewPostCommand } = await import("./pr");
|
|
87
88
|
return reviewPostCommand(argv.slice(1));
|
|
88
89
|
}
|
|
90
|
+
case "-v":
|
|
91
|
+
case "--version":
|
|
92
|
+
case "version":
|
|
93
|
+
console.log(CLI_VERSION);
|
|
94
|
+
return 0;
|
|
95
|
+
case "-h":
|
|
89
96
|
case "--help":
|
|
90
97
|
case "help":
|
|
91
98
|
printHelp();
|
|
@@ -234,6 +241,9 @@ function printHelp(): void {
|
|
|
234
241
|
" cueloop session <verb> [flags] script the daemon (create|get|list|wait|annotate|resolve|submit-revision)",
|
|
235
242
|
" cueloop review-post <id> <pr> post a resolved session's verdict back to the PR",
|
|
236
243
|
" cueloop daemon run the daemon in the foreground",
|
|
244
|
+
"",
|
|
245
|
+
" cueloop -v, --version print the installed version",
|
|
246
|
+
" cueloop -h, --help print this help",
|
|
237
247
|
].join("\n"),
|
|
238
248
|
);
|
|
239
249
|
}
|