v0.8.0 wasm client added, cli client and makefile updated

This commit is contained in:
2025-11-14 05:57:37 -05:00
parent 35804d4b9a
commit f63ab9e10a
22 changed files with 1073 additions and 36 deletions
+20
View File
@@ -0,0 +1,20 @@
// FILE: lixenwraith/chess/internal/client/command/pass_native.go
//go:build !js && !wasm
package command
import (
"fmt"
"golang.org/x/term"
)
func readPassword(prompt string) (string, error) {
fmt.Print(prompt)
bytePassword, err := term.ReadPassword(0) // 0 is stdin
fmt.Println()
if err != nil {
return "", err
}
return string(bytePassword), nil
}