Skip to content

Commit

Permalink
revert accidentally commented core logic
Browse files Browse the repository at this point in the history
  • Loading branch information
claytercek committed Sep 20, 2023
1 parent 0284121 commit b9eb6c7
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions packages/launchpad/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import { LaunchpadCore } from './lib/launchpad-core.js';
import { launchFromCli } from '@bluecadet/launchpad-utils';
import { launch as launchScaffold } from '@bluecadet/launchpad-scaffold';
import LaunchpadMonitor from '@bluecadet/launchpad-monitor';
export { defineConfig } from './lib/launchpad-options.js';

export default LaunchpadCore;
Expand Down Expand Up @@ -46,33 +48,33 @@ launchFromCli(import.meta, {
return argv;
}
}).then(async config => {
// const launchpad = new LaunchpadCore(config);
const launchpad = new LaunchpadCore(config);

// switch (config.startupCommand) {
// case StartupCommands.SCAFFOLD: {
// await launchScaffold(config);
// break;
// }
// case StartupCommands.CONTENT: {
// await launchpad.updateContent();
// await launchpad.shutdown();
// break;
// }
// case StartupCommands.MONITOR: {
// await launchpad.startApps();
// break;
// }
// case StartupCommands.STOP: {
// await launchpad.stopApps();
// await LaunchpadMonitor.kill();
// break;
// }
// case StartupCommands.START:
// default: {
// await launchpad.startup();
// break;
// }
// }
switch (config.startupCommand) {
case StartupCommands.SCAFFOLD: {
await launchScaffold(config);
break;
}
case StartupCommands.CONTENT: {
await launchpad.updateContent();
await launchpad.shutdown();
break;
}
case StartupCommands.MONITOR: {
await launchpad.startApps();
break;
}
case StartupCommands.STOP: {
await launchpad.stopApps();
await LaunchpadMonitor.kill();
break;
}
case StartupCommands.START:
default: {
await launchpad.startup();
break;
}
}
}).catch(err => {
if (err) {
console.error('Launch error', err);
Expand Down

0 comments on commit b9eb6c7

Please sign in to comment.