From 653241c43ee8380f6bb6e124d358699cc96839d5 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 24 Feb 2025 15:16:50 +0100 Subject: [PATCH] unify variable add --- cli/variable.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/variable.ts b/cli/variable.ts index 8faa1cf319..789334c44c 100644 --- a/cli/variable.ts +++ b/cli/variable.ts @@ -161,7 +161,7 @@ async function add( undefined, { value, - is_secret: !opts.public, + is_secret: !opts.public && !opts.plainSecrets, description: "", }, opts.plainSecrets ?? false @@ -184,7 +184,9 @@ const command = new Command() "Create a new variable on the remote. This will update the variable if it already exists." ) .arguments(" ") - .option("--public", "Make a public variable") + .option("--plain-secrets", "Push secrets as plain text") + .option("--public", "Legacy option, use --plain-secrets instead") + .action(add as any); export default command;