"use strict";
const index_1 = require("../../index");
module.exports = {
    command: 'start',
    desc: 'Start the Serenity/JS playground',
    builder: {
        port: {
            default: 3000,
            describe: 'The port to start the web server on',
        },
    },
    handler: (argv) => new Promise((resolve, reject) => {
        index_1.server.on('error', reject);
        index_1.server.listen(parseInt(argv.port, 10), '127.0.0.1', () => {
            // tslint:disable-next-line:no-console
            console.log(`Serenity/JS Playground started on http://localhost:${argv.port}`);
        });
    }),
};
//# sourceMappingURL=start.js.map