hedgequantx 1.2.126 → 1.2.127
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 -2
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -709,13 +709,20 @@ const handleUpdate = async () => {
|
|
|
709
709
|
console.log();
|
|
710
710
|
console.log(chalk.green(` ✓ Updated: v${currentVersion} -> v${latestVersion}`));
|
|
711
711
|
console.log();
|
|
712
|
-
console.log(chalk.cyan(' Restarting
|
|
712
|
+
console.log(chalk.cyan(' Restarting HedgeQuantX CLI...'));
|
|
713
713
|
console.log();
|
|
714
714
|
|
|
715
715
|
// Small delay so user can see the message
|
|
716
716
|
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
717
717
|
|
|
718
|
-
//
|
|
718
|
+
// Restart the CLI automatically
|
|
719
|
+
const { spawn } = require('child_process');
|
|
720
|
+
const child = spawn('hedgequantx', [], {
|
|
721
|
+
stdio: 'inherit',
|
|
722
|
+
detached: true,
|
|
723
|
+
shell: true
|
|
724
|
+
});
|
|
725
|
+
child.unref();
|
|
719
726
|
process.exit(0);
|
|
720
727
|
|
|
721
728
|
} catch (error) {
|