mirror of
https://codeberg.org/scip/anydb.git
synced 2026-10-08 03:04:20 +02:00
Compare commits
2 Commits
updatego
...
2a01c6f9a7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a01c6f9a7 | ||
|
|
497b8b3201 |
@@ -18,6 +18,8 @@ builds:
|
|||||||
- windows
|
- windows
|
||||||
- darwin
|
- darwin
|
||||||
- freebsd
|
- freebsd
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- formats: [tar.gz]
|
- formats: [tar.gz]
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ type Key struct {
|
|||||||
func AskForPassword() ([]byte, error) {
|
func AskForPassword() ([]byte, error) {
|
||||||
fmt.Fprint(os.Stderr, "Password: ")
|
fmt.Fprint(os.Stderr, "Password: ")
|
||||||
|
|
||||||
pass, err := term.ReadPassword(syscall.Stdin)
|
// nolint: unconvert
|
||||||
|
pass, err := term.ReadPassword(int(syscall.Stdin))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to read password: %w", err)
|
return nil, fmt.Errorf("failed to read password: %w", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user