@rowlabs/ev 0.4.3 → 0.4.4
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/index.js +9 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7978,8 +7978,7 @@ var getCommand = new Command12("get").description("Get a single secret value").a
|
|
|
7978
7978
|
const cwd = process.cwd();
|
|
7979
7979
|
const isAtRoot = cwd === repoRoot;
|
|
7980
7980
|
if (isAtRoot && !target && config?.apps && Object.keys(config.apps).length > 0) {
|
|
7981
|
-
const
|
|
7982
|
-
for (const appName of Object.keys(config.apps)) {
|
|
7981
|
+
const searches = Object.keys(config.apps).map(async (appName) => {
|
|
7983
7982
|
try {
|
|
7984
7983
|
const value = await getSecretValue(
|
|
7985
7984
|
context.project,
|
|
@@ -7989,12 +7988,14 @@ var getCommand = new Command12("get").description("Get a single secret value").a
|
|
|
7989
7988
|
isEvBackend,
|
|
7990
7989
|
backendConfig
|
|
7991
7990
|
);
|
|
7992
|
-
if (value !== null) {
|
|
7993
|
-
results.push({ app: appName, value });
|
|
7994
|
-
}
|
|
7991
|
+
if (value !== null) return { app: appName, value };
|
|
7995
7992
|
} catch {
|
|
7996
7993
|
}
|
|
7997
|
-
|
|
7994
|
+
return null;
|
|
7995
|
+
});
|
|
7996
|
+
const results = (await Promise.all(searches)).filter(
|
|
7997
|
+
(r2) => r2 !== null
|
|
7998
|
+
);
|
|
7998
7999
|
if (results.length === 0) {
|
|
7999
8000
|
console.error(chalk14.red(`Secret "${key}" not found in any app`));
|
|
8000
8001
|
process.exit(1);
|
|
@@ -8931,7 +8932,7 @@ var updateCommand = new Command18("update").description("Update ev to the latest
|
|
|
8931
8932
|
const spinner = ora12("Checking for updates...").start();
|
|
8932
8933
|
try {
|
|
8933
8934
|
const latest = execSync2("npm view @rowlabs/ev version", { encoding: "utf-8" }).trim();
|
|
8934
|
-
const current = "0.4.
|
|
8935
|
+
const current = "0.4.4";
|
|
8935
8936
|
if (current === latest) {
|
|
8936
8937
|
spinner.succeed(chalk20.green(`Already on the latest version (${current})`));
|
|
8937
8938
|
return;
|
|
@@ -9024,7 +9025,7 @@ function prompt2(question) {
|
|
|
9024
9025
|
|
|
9025
9026
|
// src/index.ts
|
|
9026
9027
|
var program = new Command20();
|
|
9027
|
-
program.name("ev").description("Git for env vars \u2014 sync environment variables across teams securely").version("0.4.
|
|
9028
|
+
program.name("ev").description("Git for env vars \u2014 sync environment variables across teams securely").version("0.4.4");
|
|
9028
9029
|
program.addCommand(loginCommand);
|
|
9029
9030
|
program.addCommand(initCommand);
|
|
9030
9031
|
program.addCommand(pushCommand);
|