diff --git a/CHANGELOG.md b/CHANGELOG.md index 183752d9ae..ed7ee060ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ This is the log of notable changes to EAS CLI and related packages. ### ๐Ÿงน Chores +- Improve logging in `eas env:pull`. ([#2720](https://github.com/expo/eas-cli/pull/2720) by [@szdziedzic](https://github.com/szdziedzic)) + ## [13.4.0](https://github.com/expo/eas-cli/releases/tag/v13.4.0) - 2024-11-22 ### ๐ŸŽ‰ New features diff --git a/packages/eas-cli/src/commands/env/pull.ts b/packages/eas-cli/src/commands/env/pull.ts index 7bfbe93f93..96fa8309d4 100644 --- a/packages/eas-cli/src/commands/env/pull.ts +++ b/packages/eas-cli/src/commands/env/pull.ts @@ -116,7 +116,7 @@ export default class EnvPull extends EasCommand { return `${variable.name}=${currentEnvLocal[variable.name]}`; } skippedSecretVariables.push(variable.name); - return `# ${variable.name}=***** (secret variables are not available for reading)`; + return `# ${variable.name}=***** (secret)`; } if (variable.type === EnvironmentSecretType.FileBase64 && variable.valueWithFileContent) { const filePath = path.join(envDir, variable.name); @@ -130,20 +130,20 @@ export default class EnvPull extends EasCommand { await fs.writeFile(targetPath, filePrefix + envFileContentLines.join('\n')); Log.log( - `Pulled environment variables from ${environment.toLowerCase()} environment to ${targetPath}.` + `Pulled plain text and sensitive environment variables from "${environment.toLowerCase()}" environment to ${targetPath}.` ); if (overridenSecretVariables.length > 0) { Log.addNewLineIfNone(); - Log.log(`Reused local values for following secrets: ${overridenSecretVariables.join('\n')}`); + Log.log(`Reused local values for following secrets: ${overridenSecretVariables.join('\n')}.`); } if (skippedSecretVariables.length > 0) { Log.addNewLineIfNone(); - Log.warn( - `The following variables have the secret visibility and can not be read outside of EAS servers. Set their values manually in .env.local: ${skippedSecretVariables.join( - '\n' - )}` + Log.log( + `The following variables have the secret visibility and can't be read outside of EAS servers. Set their values manually in your .env file: ${skippedSecretVariables.join( + ', ' + )}.` ); } }