hedgequantx 2.7.27 → 2.7.28
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 +1 -1
- package/src/app.js +9 -7
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -161,19 +161,21 @@ const getMobileLogo = () => [
|
|
|
161
161
|
const run = async () => {
|
|
162
162
|
try {
|
|
163
163
|
log.info('Starting HQX CLI');
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const
|
|
164
|
+
|
|
165
|
+
// First launch - show banner with loading spinner
|
|
166
|
+
await banner();
|
|
167
|
+
const boxWidth = getLogoWidth();
|
|
168
|
+
const innerWidth = boxWidth - 2;
|
|
169
|
+
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
|
170
|
+
|
|
171
|
+
const spinner = ora({ text: ' Loading...', color: 'yellow' }).start();
|
|
168
172
|
const restored = await connections.restoreFromStorage();
|
|
169
173
|
|
|
170
174
|
if (restored) {
|
|
171
|
-
spinner.succeed('Session restored');
|
|
172
175
|
currentService = connections.getAll()[0].service;
|
|
173
176
|
await refreshStats();
|
|
174
|
-
} else {
|
|
175
|
-
spinner.info('No active session');
|
|
176
177
|
}
|
|
178
|
+
spinner.stop();
|
|
177
179
|
|
|
178
180
|
// Main loop
|
|
179
181
|
while (true) {
|