UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

22 lines (21 loc) 865 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 ShutdownCommand { constructor(commander) { commander.command('shutdown') .description('Desliga o ambiente docker.') .action(ShutdownCommand.actionCommand); ShutdownCommand.program = commander; } static actionCommand() { console.log("Desligando o ambiente..."); /** Desliga o ambiente docker. */ let cmd = CommandUtils_1.default.execCommandSync('docker-machine', ['stop']); console.log("Ambiente desligado com sucesso."); } } exports.default = ShutdownCommand;