"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.devCommand = void 0;
const commander_1 = require("commander");
const dev_service_1 = require("../services/dev.service");
const error_handler_1 = require("../utils/error.handler");
exports.devCommand = new commander_1.Command("dev")
    .description("Start io.cd in development mode (the app is not packaged)")
    .option("--extraLaunchArgs <arguments>", "Extra launch arguments split by space", undefined)
    .action(async (options) => {
    try {
        const extraArgs = options.extraLaunchArgs?.split(" ") ?? [];
        await (0, dev_service_1.startDevMode)(extraArgs);
    }
    catch (error) {
        error_handler_1.ErrorHandler.handle(error);
    }
});
//# sourceMappingURL=dev.command.js.map