UNPKG

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