systemview 1.20.0 → 1.20.1
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/cli/index.js +6 -4
- package/cli/utils/cli.js +1 -1
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -121,13 +121,15 @@ async function quitApp() {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
(async () => {
|
|
124
|
+
if (process.argv.includes("--version") || process.argv.includes("-v")) {
|
|
125
|
+
console.log(VERSION);
|
|
126
|
+
process.exit(0);
|
|
127
|
+
}
|
|
128
|
+
|
|
124
129
|
init();
|
|
125
130
|
const command = input[0];
|
|
126
131
|
|
|
127
|
-
if (
|
|
128
|
-
console.log(VERSION);
|
|
129
|
-
process.exit(0);
|
|
130
|
-
} else if (command === "open") {
|
|
132
|
+
if (command === "open") {
|
|
131
133
|
await open();
|
|
132
134
|
} else if (command === "list") {
|
|
133
135
|
await list();
|
package/cli/utils/cli.js
CHANGED
|
@@ -48,7 +48,7 @@ const flagValueArgs = ["--manifest", "--header", "--skip", "--phase", "--index"]
|
|
|
48
48
|
|
|
49
49
|
const flags = {
|
|
50
50
|
json: rawArgs.includes("--json"),
|
|
51
|
-
verbose: rawArgs.includes("--verbose")
|
|
51
|
+
verbose: rawArgs.includes("--verbose"),
|
|
52
52
|
debug: rawArgs.includes("--debug") || rawArgs.includes("-d"),
|
|
53
53
|
bail: rawArgs.includes("--bail"),
|
|
54
54
|
dryRun: rawArgs.includes("--dry-run"),
|