forked from mirror/readline
add readline.Password()
This commit is contained in:
parent
a5bc4d464a
commit
d85c8b4802
5
std.go
5
std.go
|
@ -53,6 +53,11 @@ func AddHistory(content string) error {
|
||||||
return ins.SaveHistory(content)
|
return ins.SaveHistory(content)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Password(prompt string) ([]byte, error) {
|
||||||
|
ins := getInstance()
|
||||||
|
return ins.ReadPassword(prompt)
|
||||||
|
}
|
||||||
|
|
||||||
// readline with global configs
|
// readline with global configs
|
||||||
func Line(prompt string) (string, error) {
|
func Line(prompt string) (string, error) {
|
||||||
ins := getInstance()
|
ins := getInstance()
|
||||||
|
|
Loading…
Reference in New Issue