run-spaceapp 0.1.8 → 0.1.10
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 +2 -2
- package/src/cli.mjs +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "run-spaceapp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Cross-platform Docker launcher for the SpaceApp self-hosted agent workspace",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public",
|
|
46
46
|
"provenance": true
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4443cc6ad69b1e6057912df4060a58c1596274b1"
|
|
49
49
|
}
|
package/src/cli.mjs
CHANGED
|
@@ -123,7 +123,12 @@ export async function run(argv, {
|
|
|
123
123
|
}
|
|
124
124
|
if (command === "open") {
|
|
125
125
|
assertNoArgs(args, "open");
|
|
126
|
-
|
|
126
|
+
const url = `http://${config.bindHost}:${config.port}`;
|
|
127
|
+
const openCode = await openBrowser(url, platform, execute, { stdin, stdout, stderr });
|
|
128
|
+
if (openCode !== 0) {
|
|
129
|
+
stderr.write(`Could not open SpaceApp automatically. Open ${url} manually.\n`);
|
|
130
|
+
}
|
|
131
|
+
return 0;
|
|
127
132
|
}
|
|
128
133
|
if (command === "doctor") {
|
|
129
134
|
assertNoArgs(args, "doctor");
|