diff --git a/src/commands/configure.shared.ts b/src/commands/configure.shared.ts index 35763693ef88..1d36d8f078b0 100644 --- a/src/commands/configure.shared.ts +++ b/src/commands/configure.shared.ts @@ -90,6 +90,12 @@ export const text = (params: Parameters[0]) => ...params, message: stylePromptMessage(params.message), }); +/** Styled password prompt wrapper. Echoes bullets so secrets never appear in cleartext. */ +export const password = (params: Parameters[0]) => + clackPassword({ + ...params, + message: stylePromptMessage(params.message), + }); /** Styled confirm prompt wrapper. */ export const confirm = (params: Parameters[0]) => clackConfirm({