zenity/pwd_windows.go

13 lines
250 B
Go
Raw Normal View History

2021-04-08 20:26:57 -04:00
package zenity
2022-05-03 09:20:22 -04:00
import "fmt"
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 {
2022-05-03 09:20:22 -04:00
return "", "", fmt.Errorf("%w: username", ErrUnsupported)
2021-04-29 11:55:44 -04:00
}
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
}