UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

22 lines (21 loc) 866 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 StartupCommand { constructor(commander) { commander.command('startup') .description('Liga o ambiente docker.') .action(StartupCommand.actionCommand); StartupCommand.program = commander; } static actionCommand() { console.log("Ligando o ambiente docker..."); /** Parando ambiente de gerenciamento */ let cmd = CommandUtils_1.default.execCommandSync('docker-machine', ['start']); console.log("Ambiente ligado com sucesso."); } } exports.default = StartupCommand;