cassian-cli 0.1.8 → 0.1.9
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/up.js +3 -5
- package/package.json +1 -1
package/dist/commands/up.js
CHANGED
|
@@ -82,14 +82,12 @@ export async function up() {
|
|
|
82
82
|
fatal("Could not connect to Cassian.", "Check your internet connection and try again. If this keeps happening, reach out at trycassian.com.");
|
|
83
83
|
}
|
|
84
84
|
connectSpinner.succeed("Connected");
|
|
85
|
-
// SSH key —
|
|
86
|
-
let sshPubKey;
|
|
85
|
+
// SSH key — optional, used only for direct SSH fallback
|
|
86
|
+
let sshPubKey = "";
|
|
87
87
|
try {
|
|
88
88
|
sshPubKey = readFileSync(findSshPublicKey(dev.ssh_public_key), "utf-8").trim();
|
|
89
89
|
}
|
|
90
|
-
catch {
|
|
91
|
-
fatal("No SSH key found.", "Generate one with: ssh-keygen -t ed25519");
|
|
92
|
-
}
|
|
90
|
+
catch { /* no key is fine — websocket terminal doesn't need it */ }
|
|
93
91
|
const spinner = ora("Starting instance...").start();
|
|
94
92
|
try {
|
|
95
93
|
const client = new ApiClient();
|