"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStopCommand = createStopCommand;
const docker_compose_1 = require("../services/docker-compose");
const env_loader_1 = require("../utils/env-loader");
const logger_1 = require("../utils/logger");
const i18n_1 = require("../i18n");
const command_1 = require("../utils/command");
function createStopCommand() {
    return (0, command_1.createCommand)('stop')
        .description((0, i18n_1.t)('commands.stop.description'))
        .action(() => {
        try {
            const config = env_loader_1.envLoader.load();
            docker_compose_1.composeService.stop(config.COMPOSE_FILE_PATH);
            logger_1.logger.success('Containers stopped successfully.');
        }
        catch (error) {
            const message = error instanceof Error ? error.message : String(error);
            logger_1.logger.error(`Failed to stop containers: ${message}`);
            process.exit(1);
        }
    });
}
//# sourceMappingURL=stop.js.map