private ProcessLauncher getTerraformLauncher()

in terraform-client/src/main/java/com/microsoft/terraform/TerraformClient.java [124:137]


    private ProcessLauncher getTerraformLauncher(String command) throws IOException {
        ProcessLauncher launcher = new ProcessLauncher(this.executor, TERRAFORM_EXE_NAME, command);
        launcher.setDirectory(this.getWorkingDirectory());
        launcher.setInheritIO(this.isInheritIO());
        launcher.setOrAppendEnvironmentVariable(USER_AGENT_ENV_NAME, USER_AGENT_ENV_VALUE, USER_AGENT_DELIMITER);
        launcher.setEnvironmentVariable(SUBS_ID_ENV_NAME, this.options.getArmSubscriptionId());
        launcher.setEnvironmentVariable(CLIENT_ID_ENV_NAME, this.options.getArmClientId());
        launcher.setEnvironmentVariable(SECRET_ENV_NAME, this.options.getArmClientSecret());
        launcher.setEnvironmentVariable(TENANT_ID_ENV_NAME, this.options.getArmTenantId());
        launcher.appendCommands(NON_INTERACTIVE_COMMAND_MAP.get(command));
        launcher.setOutputListener(this.getOutputListener());
        launcher.setErrorListener(this.getErrorListener());
        return launcher;
    }