1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("@oclif/command");
|
4 | var exec = require('child_process').exec;
|
5 | var startServerProcess = exec('stack exec server');
|
6 | function execWithOutput(p) {
|
7 | p;
|
8 | p.stderr.on('data', function (data) {
|
9 | console.log(data);
|
10 | });
|
11 | }
|
12 | class StartServer extends command_1.Command {
|
13 | async run() {
|
14 | const { args, flags } = this.parse(StartServer);
|
15 | execWithOutput(startServerProcess);
|
16 | }
|
17 | }
|
18 | StartServer.description = 'describe the command here';
|
19 | StartServer.flags = {
|
20 | help: command_1.flags.help({ char: 'h' })
|
21 | };
|
22 | exports.default = StartServer;
|