bluekiwi 0.3.17 → 0.3.18
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/dist/commands/init.js +2 -1
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -40,6 +40,7 @@ export async function initCommand(options = {}) {
|
|
|
40
40
|
// Load existing config for pre-filling prompts
|
|
41
41
|
const existingCfg = loadConfig();
|
|
42
42
|
let server = normalizeEnvValue(options.server) ??
|
|
43
|
+
normalizeEnvValue(process.env.BLUEKIWI_API_URL) ??
|
|
43
44
|
normalizeEnvValue(process.env.BLUEKIWI_SERVER);
|
|
44
45
|
let apiKey = normalizeEnvValue(options.apiKey) ??
|
|
45
46
|
normalizeEnvValue(process.env.BLUEKIWI_API_KEY);
|
|
@@ -84,7 +85,7 @@ export async function initCommand(options = {}) {
|
|
|
84
85
|
}
|
|
85
86
|
if (server === undefined || apiKey === undefined) {
|
|
86
87
|
if (isNonInteractive) {
|
|
87
|
-
throw new Error("Non-interactive mode: --server and --api-key (or
|
|
88
|
+
throw new Error("Non-interactive mode: --server and --api-key (or BLUEKIWI_API_URL/BLUEKIWI_API_KEY) are required");
|
|
88
89
|
}
|
|
89
90
|
throw new Error("BlueKiwi server URL and API key are required");
|
|
90
91
|
}
|