From 9320b8faf08f2c88723ff9479abd2661001e1237 Mon Sep 17 00:00:00 2001 From: Scott LaPlante Date: Sat, 2 Mar 2024 21:54:52 -0500 Subject: [PATCH] change to let to allow for rewrite; rename to envVariables for consistency --- packages/bruno-cli/src/commands/run.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/bruno-cli/src/commands/run.js b/packages/bruno-cli/src/commands/run.js index 6811bb3cd..c689c9417 100644 --- a/packages/bruno-cli/src/commands/run.js +++ b/packages/bruno-cli/src/commands/run.js @@ -268,8 +268,8 @@ const handler = async function (argv) { recursive = true; } - const collectionVariables = {}; - let envVars = {}; + let collectionVariables = {}; + let envVariables = {}; if (env) { const envFile = path.join(collectionPath, 'environments', `${env}.bru`); @@ -282,7 +282,7 @@ const handler = async function (argv) { const envBruContent = fs.readFileSync(envFile, 'utf8'); const envJson = bruToEnvJson(envBruContent); - envVars = getEnvVars(envJson); + envVariables = getEnvVars(envJson); } if (envVar) { @@ -306,7 +306,7 @@ const handler = async function (argv) { ); return; } - envVars[match[1]] = match[2]; + envVariables[match[1]] = match[2]; } } } @@ -417,7 +417,7 @@ const handler = async function (argv) { bruJson, collectionPath, collectionVariables, - envVars, + envVariables, processEnvVars, brunoConfig, collectionRoot