We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4eef7a + 54572c6 commit fe55bb4Copy full SHA for fe55bb4
src/commands/functions-config-export.ts
@@ -79,14 +79,15 @@ export const command = new Command("functions:config:export")
79
}
80
81
const defaultSecretName = "RUNTIME_CONFIG";
82
- const secretName =
83
- (options.secret as string) ||
84
- (await input({
+ let secretName = options.secret as string;
+ if (!secretName) {
+ secretName = await input({
85
message: "What would you like to name the new secret for your configuration?",
86
default: defaultSecretName,
87
nonInteractive: options.nonInteractive,
88
force: options.force,
89
- }));
+ });
90
+ }
91
92
const key = await ensureValidKey(secretName, options);
93
await ensureSecret(projectId, key, options);
0 commit comments