UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

27 lines (18 loc) 633 B
import * as program from "commander"; import * as fs from "fs"; import CommandUtils from "../utils/CommandUtils"; export default class StopCommand { static program : any constructor(commander: any) { 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.execCommandSync('docker-compose', ['stop']) console.log("Ambiente parado com sucesso.") } }