"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore
const dsDaemon = require("../src/service/daemon");
exports.daemon = (program) => {
    program
        .command('daemon')
        .description('start a daemon for deepstream server')
        .option('-c, --config [file]', 'configuration file, parent directory will be used as prefix for other config files')
        .option('-l, --lib-dir [directory]', 'path where to lookup for plugins like connectors and logger')
        .option('--host <host>', 'host for the http service')
        .option('--port <port>', 'port for the http service')
        .option('--disable-auth', 'Force deepstream to use "none" auth type')
        .option('--disable-permissions', 'Force deepstream to use "none" permissions')
        .option('--log-level <level>', 'Log messages with this level and above')
        .action(action);
};
function action() {
    dsDaemon.start({ processExec: process.argv[1] });
}
//# sourceMappingURL=deepstream-daemon.js.map