UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

22 lines (21 loc) 873 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 DownCommand { constructor(commander) { commander.command('down') .description('Desmonta um ambiente Datasul configurado.') .action(DownCommand.actionCommand); DownCommand.program = commander; } static actionCommand() { console.log("Desmontando o ambiente..."); /** Desmontando ambiente de gerenciamento */ let cmd = CommandUtils_1.default.execCommandSync('docker-compose', ['down']); console.log("Ambiente desmontado com sucesso."); } } exports.default = DownCommand;