mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
unify variable add
This commit is contained in:
+4
-2
@@ -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("<value:string> <remote_path:string>")
|
||||
.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;
|
||||
|
||||
Reference in New Issue
Block a user