统一管理员重置输入提示的中文冒号
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-19 22:23:17 +08:00
1 parent 3368e4626d
commit 513ce6d619
2 files changed
+2 -1

No files matched your search

@@ -40,7 +40,7 @@ func readWindowsPassword(prompt string) (string, error) {
if !term.IsTerminal(int(os.Stdin.Fd())) {
return "", errors.New("受保护的密码输入需要交互式控制台")
}
fmt.Fprint(os.Stderr, prompt+": ")
fmt.Fprint(os.Stderr, strings.TrimRight(prompt, ":: ")+": ")
valueBytes, err := term.ReadPassword(int(os.Stdin.Fd()))
fmt.Fprintln(os.Stderr)
if err != nil {