#!/usr/bin/env node import { exec } from "child-process-promise"; import { program } from "commander"; import deploy from "./deploy"; import promote from "./promote"; (async function main() { let { stdout: currentBranch } = await exec("git branch --show-current"); currentBranch = currentBranch.trim(); const currentEnv = sanitizeBranch(currentBranch); program .command("deploy") .option("-t, --terraform-dir