Skip to content

Commit

Permalink
Improve wording in env:pull command (#2655)
Browse files Browse the repository at this point in the history
* Improve wording in env:pull command

* Update packages/eas-cli/src/commands/env/pull.ts

Co-authored-by: Szymon Dziedzic <szymon.dziedzic@swmansion.com>

---------

Co-authored-by: Szymon Dziedzic <szymon.dziedzic@swmansion.com>
  • Loading branch information
khamilowicz and szdziedzic authored Oct 25, 2024
1 parent 5478814 commit 3e6cf78
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/eas-cli/src/commands/env/pull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,22 @@ export default class EnvironmentVariablePull extends EasCommand {

await fs.writeFile(targetPath, filePrefix + envFileContentLines.join('\n'));

Log.log(
`Pulled 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')}`);
}

if (skippedSecretVariables.length > 0) {
Log.addNewLineIfNone();
Log.warn(
`The eas env:pull command tried to pull environment variables with "secret" visibility. The variables with "secret" visibility are not available for reading, therefore thet were marked as "*****" in the generated .env file. Provide values for these manually in ${targetPath} if needed. Skipped variables: ${skippedSecretVariables.join(
`The following variables have the encrypted visibility and can not be read outside of EAS servers. Set their values manually in .env.local: ${skippedSecretVariables.join(
'\n'
)}`
);
Log.warn();
}

Log.log(
`Pulled environment variables from ${environment.toLowerCase()} environment to ${targetPath}.`
);
}
}

0 comments on commit 3e6cf78

Please sign in to comment.