UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

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