Compare commits

...
Author SHA1 Message Date
Szymon Dziedzic 93d4612c93 [eas-cli] use environment.toLowerCase() in all logs 2024-09-06 15:22:53 +02:00
4 changed files with 14 additions and 6 deletions

No files matched your search

@@ -106,7 +106,9 @@ async function resolveEnvVarsAsync({
return { ...serverEnvVars, ...buildProfile.env };
} catch (e) {
Log.error(`Failed to pull env variables for environment ${environment} from EAS servers`);
Log.error(
`Failed to pull env variables for environment ${environment.toLowerCase()} from EAS servers`
);
Log.error(e);
Log.error(
'This can possibly be a bug in EAS/EAS CLI. Report it here: https://github.com/expo/eas-cli/issues'
+3 -1
View File
@@ -74,7 +74,9 @@ export default class EnvironmentValueList extends EasCommand {
if (scope === EnvironmentVariableScope.Shared) {
Log.log(chalk.bold('Shared variables for this account:'));
} else {
Log.log(chalk.bold(`Variables for this project for environment ${environment}:`));
Log.log(
chalk.bold(`Variables for this project for environment ${environment?.toLowerCase()}:`)
);
}
Log.log(
variables.map(variable => formatVariable(variable)).join(`\n\n${chalk.dim('———')}\n\n`)
+3 -1
View File
@@ -75,6 +75,8 @@ export default class EnvironmentValuePull extends EasCommand {
.join('\n');
await fs.writeFile(targetPath, filePrefix + envFileContent);
Log.log(`Pulled environment variables from ${environment} environment to ${targetPath}.`);
Log.log(
`Pulled environment variables from ${environment.toLowerCase()} environment to ${targetPath}.`
);
}
}
+5 -3
View File
@@ -98,8 +98,10 @@ export default class EnvironmentVariablePush extends EasCommand {
variableNames.length > 1
? `The ${variableNames.join(
', '
)} environment variables already exist in ${environment} environment. Do you want to override them all?`
: `The ${variableNames[0]} environment variable already exists in ${environment} environment. Do you want to override it?`;
)} environment variables already exist in ${environment.toLowerCase()} environment. Do you want to override them all?`
: `The ${
variableNames[0]
} environment variable already exists in ${environment.toLowerCase()} environment. Do you want to override it?`;
const confirm = await confirmAsync({
message: confirmationMessage,
@@ -172,7 +174,7 @@ export default class EnvironmentVariablePush extends EasCommand {
projectId
);
Log.log(`Uploaded env file to ${environment} environment.`);
Log.log(`Uploaded env file to ${environment.toLowerCase()} environment.`);
}
private async parseEnvFileAsync(