Skip to content

Commit b9eb6c7

Browse files
committed
revert accidentally commented core logic
1 parent 0284121 commit b9eb6c7

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

packages/launchpad/index.js

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import { LaunchpadCore } from './lib/launchpad-core.js';
44
import { launchFromCli } from '@bluecadet/launchpad-utils';
5+
import { launch as launchScaffold } from '@bluecadet/launchpad-scaffold';
6+
import LaunchpadMonitor from '@bluecadet/launchpad-monitor';
57
export { defineConfig } from './lib/launchpad-options.js';
68

79
export default LaunchpadCore;
@@ -46,33 +48,33 @@ launchFromCli(import.meta, {
4648
return argv;
4749
}
4850
}).then(async config => {
49-
// const launchpad = new LaunchpadCore(config);
51+
const launchpad = new LaunchpadCore(config);
5052

51-
// switch (config.startupCommand) {
52-
// case StartupCommands.SCAFFOLD: {
53-
// await launchScaffold(config);
54-
// break;
55-
// }
56-
// case StartupCommands.CONTENT: {
57-
// await launchpad.updateContent();
58-
// await launchpad.shutdown();
59-
// break;
60-
// }
61-
// case StartupCommands.MONITOR: {
62-
// await launchpad.startApps();
63-
// break;
64-
// }
65-
// case StartupCommands.STOP: {
66-
// await launchpad.stopApps();
67-
// await LaunchpadMonitor.kill();
68-
// break;
69-
// }
70-
// case StartupCommands.START:
71-
// default: {
72-
// await launchpad.startup();
73-
// break;
74-
// }
75-
// }
53+
switch (config.startupCommand) {
54+
case StartupCommands.SCAFFOLD: {
55+
await launchScaffold(config);
56+
break;
57+
}
58+
case StartupCommands.CONTENT: {
59+
await launchpad.updateContent();
60+
await launchpad.shutdown();
61+
break;
62+
}
63+
case StartupCommands.MONITOR: {
64+
await launchpad.startApps();
65+
break;
66+
}
67+
case StartupCommands.STOP: {
68+
await launchpad.stopApps();
69+
await LaunchpadMonitor.kill();
70+
break;
71+
}
72+
case StartupCommands.START:
73+
default: {
74+
await launchpad.startup();
75+
break;
76+
}
77+
}
7678
}).catch(err => {
7779
if (err) {
7880
console.error('Launch error', err);

0 commit comments

Comments
 (0)