@clubnet/seedclub 0.2.44 → 0.2.45
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/bin/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1376,7 +1376,9 @@ export class SeedclubInteractiveModeApp {
|
|
|
1376
1376
|
await runSeedclubUpdateCommand();
|
|
1377
1377
|
await storeUpdatePrefs({ skipVersion: null });
|
|
1378
1378
|
this.setAvailableUpdate(null, null);
|
|
1379
|
-
this.
|
|
1379
|
+
await this.stop({
|
|
1380
|
+
message: "seedclub was updated.\nRun `seedclub` to start the updated version.",
|
|
1381
|
+
});
|
|
1380
1382
|
} catch (error) {
|
|
1381
1383
|
this.showExtensionNotify(
|
|
1382
1384
|
`Update failed: ${error instanceof Error ? error.message : "Update failed."}`,
|
|
@@ -2613,7 +2615,7 @@ export class SeedclubInteractiveModeApp {
|
|
|
2613
2615
|
}
|
|
2614
2616
|
}
|
|
2615
2617
|
|
|
2616
|
-
async stop() {
|
|
2618
|
+
async stop(options = {}) {
|
|
2617
2619
|
if (this.isShuttingDown) {
|
|
2618
2620
|
return;
|
|
2619
2621
|
}
|
|
@@ -2633,6 +2635,10 @@ export class SeedclubInteractiveModeApp {
|
|
|
2633
2635
|
this.footerDataProvider.dispose();
|
|
2634
2636
|
this.session.dispose();
|
|
2635
2637
|
this.ui.stop();
|
|
2638
|
+
if (typeof options.message === "string" && options.message.trim()) {
|
|
2639
|
+
console.log("");
|
|
2640
|
+
console.log(options.message.trim());
|
|
2641
|
+
}
|
|
2636
2642
|
process.exit(0);
|
|
2637
2643
|
}
|
|
2638
2644
|
}
|