fix(configure): mask gateway password input in CLI wizard prompt · openclaw/openclaw@865e4db
anurag-bg-ne
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -90,6 +90,12 @@ export const text = (params: Parameters<typeof clackText>[0]) =>
|
90 | 90 | ...params, |
91 | 91 | message: stylePromptMessage(params.message), |
92 | 92 | }); |
| 93 | +/** Styled password prompt wrapper. Echoes bullets so secrets never appear in cleartext. */ |
| 94 | +export const password = (params: Parameters<typeof clackPassword>[0]) => |
| 95 | +clackPassword({ |
| 96 | + ...params, |
| 97 | +message: stylePromptMessage(params.message), |
| 98 | +}); |
93 | 99 | /** Styled confirm prompt wrapper. */ |
94 | 100 | export const confirm = (params: Parameters<typeof clackConfirm>[0]) => |
95 | 101 | clackConfirm({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。