Skip to content

Commit 54572c6

Browse files
Update src/commands/functions-config-export.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent c68a82a commit 54572c6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/commands/functions-config-export.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ export const command = new Command("functions:config:export")
7979
}
8080

8181
const defaultSecretName = "RUNTIME_CONFIG";
82-
const secretName =
83-
(options.secret as string) ||
84-
(await input({
82+
let secretName = options.secret as string;
83+
if (!secretName) {
84+
secretName = await input({
8585
message: "What would you like to name the new secret for your configuration?",
8686
default: defaultSecretName,
8787
nonInteractive: options.nonInteractive,
8888
force: options.force,
89-
}));
89+
});
90+
}
9091

9192
const key = await ensureValidKey(secretName, options);
9293
await ensureSecret(projectId, key, options);

0 commit comments

Comments
 (0)