fix: getVariable can now return the encrypted value

This commit is contained in:
Ruben Fiszel
2023-12-14 09:21:02 +01:00
parent 88ca721b15
commit ddf420bdb0
3 changed files with 61 additions and 26 deletions

View File

@@ -73,6 +73,7 @@ export async function pushVariable(
log.debug(`Variable ${remotePath} is up-to-date`);
return;
}
log.debug(`Variable ${remotePath} is not up-to-date, updating`);
await VariableService.updateVariable({
@@ -122,13 +123,13 @@ async function push(
remotePath,
undefined,
parseFromFile(filePath),
opts.plainSecrets
opts.plainSecrets ?? false
);
log.info(colors.bold.underline.green(`Variable ${remotePath} pushed`));
}
async function add(
opts: GlobalOptions & { public?: boolean },
opts: GlobalOptions & { public?: boolean; plainSecrets?: boolean },
value: string,
remotePath: string
) {
@@ -167,7 +168,7 @@ async function add(
is_secret: !opts.public,
description: "",
},
true
opts.plainSecrets ?? false
);
log.info(colors.bold.underline.green(`Variable ${remotePath} pushed`));
}