learn-secrets-sdk 1.11.4 → 1.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +8 -0
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -782,6 +782,7 @@ Next steps:`);
|
|
|
782
782
|
fs3.writeFileSync(configFile, JSON.stringify(config, null, 2));
|
|
783
783
|
console.log(`
|
|
784
784
|
Updated local config: ${configFile}`);
|
|
785
|
+
console.log(`Saved env config: ${envFile} (will be used by 'learn-secrets deploy')`);
|
|
785
786
|
} catch (error) {
|
|
786
787
|
console.error("\nUpload failed:", error.message);
|
|
787
788
|
if (error.status === 401) {
|
|
@@ -869,6 +870,13 @@ Deploying secrets to project: ${config.project}`);
|
|
|
869
870
|
console.log(`Origins: ${config.origins.join(", ")}
|
|
870
871
|
`);
|
|
871
872
|
const envFile = options.env || config.env || ".env";
|
|
873
|
+
if (options.env) {
|
|
874
|
+
console.log(`[Using --env flag: ${options.env}]`);
|
|
875
|
+
} else if (config.env) {
|
|
876
|
+
console.log(`[Using env from config: ${config.env}]`);
|
|
877
|
+
} else {
|
|
878
|
+
console.log(`[Using default: .env]`);
|
|
879
|
+
}
|
|
872
880
|
let secrets;
|
|
873
881
|
let envVars = [];
|
|
874
882
|
try {
|