MCPcopy Index your code
hub / github.com/abiosoft/ishell / readPasswordErr

Method readPasswordErr

reader.go:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (s *shellReader) readPasswordErr() (string, error) {
45 prompt := ""
46 if s.buf.Len() > 0 {
47 prompt = s.buf.String()
48 s.buf.Truncate(0)
49 }
50 password, err := s.scanner.ReadPassword(prompt)
51 return string(password), err
52}
53
54func (s *shellReader) readPassword() string {
55 password, _ := s.readPasswordErr()

Callers 2

readPasswordMethod · 0.95
ReadPasswordErrMethod · 0.80

Calls 2

LenMethod · 0.80
ReadPasswordMethod · 0.65

Tested by

no test coverage detected