zenity/pwd_stub.go

13 lines
238 B
Go
Raw Normal View History

2022-03-24 10:37:37 -04:00
//go:build windows || darwin
2021-04-08 20:26:57 -04:00
package zenity
2021-04-29 11:05:28 -04:00
func password(opts options) (string, string, error) {
2021-04-29 11:55:44 -04:00
if opts.username {
return "", "", ErrUnsupported
}
2021-04-08 20:26:57 -04:00
opts.hideText = true
2021-04-29 11:05:28 -04:00
str, err := entry("Password:", opts)
return "", str, err
2021-04-08 20:26:57 -04:00
}