totvs-dtsenv-cli
Version:
TOTVS Datasul Environment Command Line
27 lines (18 loc) • 639 B
text/typescript
import * as program from "commander";
import * as fs from "fs";
import CommandUtils from "../utils/CommandUtils";
export default class StartupCommand {
static program : any
constructor(commander: any) {
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.execCommandSync('docker-machine', ['start'])
console.log("Ambiente ligado com sucesso.")
}
}