@askance/cli 0.2.1 → 0.2.2
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/cli/index.js +8 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -440,6 +440,14 @@ async function login() {
|
|
|
440
440
|
}
|
|
441
441
|
catch { }
|
|
442
442
|
}
|
|
443
|
+
// Check if a project is linked — if not, set one up
|
|
444
|
+
if (!config.projectId) {
|
|
445
|
+
console.log("\n No project linked. Setting up project...");
|
|
446
|
+
await setupProject();
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
console.log(` Project: ${config.projectId}`);
|
|
450
|
+
}
|
|
443
451
|
console.log("\n To log in as a different user, delete .askance/credentials and run login again.");
|
|
444
452
|
return;
|
|
445
453
|
}
|