zenity/pwd_stub.go
2022-05-04 23:24:14 +01:00

14 lines
280 B
Go

//go:build windows || darwin
package zenity
import "fmt"
func password(opts options) (string, string, error) {
if opts.username {
return "", "", fmt.Errorf("%w: username", ErrUnsupported)
}
opts.hideText = true
str, err := entry("Password:", opts)
return "", str, err
}