glenn-code 1.0.28 → 1.0.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/bin/cli.js +14 -0
- package/dist/adapters/signalr/index.js +58 -50
- package/dist/cli.js +58 -50
- package/package.json +2 -2
package/bin/cli.js
CHANGED
|
@@ -30,6 +30,7 @@ Usage:
|
|
|
30
30
|
Options:
|
|
31
31
|
--help, -h Show this help message
|
|
32
32
|
--version, -v Show version number
|
|
33
|
+
--url [URL] Set the app URL for browser auth (shows picker if no URL given)
|
|
33
34
|
|
|
34
35
|
Environment Variables:
|
|
35
36
|
MASTER_URL Backend URL (prompted if not set)
|
|
@@ -57,6 +58,19 @@ if (process.argv.includes("--version") || process.argv.includes("-v")) {
|
|
|
57
58
|
process.exit(0);
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
// Handle --url flag (with optional value)
|
|
62
|
+
const urlFlagIndex = process.argv.indexOf("--url");
|
|
63
|
+
if (urlFlagIndex !== -1) {
|
|
64
|
+
const nextArg = process.argv[urlFlagIndex + 1];
|
|
65
|
+
if (nextArg && !nextArg.startsWith("--")) {
|
|
66
|
+
// --url <value> — use that URL directly
|
|
67
|
+
process.env.GLENN_CODE_APP_URL = nextArg;
|
|
68
|
+
} else {
|
|
69
|
+
// --url with no value — show picker
|
|
70
|
+
process.env.GLENN_CODE_URL_PICKER = "true";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
60
74
|
// Set environment for local mode
|
|
61
75
|
process.env.LOCAL_MODE = "true";
|
|
62
76
|
process.env.WORKSPACE_DIR = process.env.WORKSPACE_DIR || process.cwd();
|