UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

22 lines (21 loc) 857 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const CommandUtils_1 = __importDefault(require("../utils/CommandUtils")); class StopCommand { constructor(commander) { commander.command('stop') .description('Para um ambiente Datasul configurado.') .action(StopCommand.actionCommand); StopCommand.program = commander; } static actionCommand() { console.log("Parando o ambiente..."); /** Parando ambiente de gerenciamento */ let cmd = CommandUtils_1.default.execCommandSync('docker-compose', ['stop']); console.log("Ambiente parado com sucesso."); } } exports.default = StopCommand;