rlPrompt returns the proper prompt for readline based on showPrompt and prompt members.
()
| 32 | // rlPrompt returns the proper prompt for readline based on showPrompt and |
| 33 | // prompt members. |
| 34 | func (s *shellReader) rlPrompt() string { |
| 35 | if s.showPrompt { |
| 36 | if s.readingMulti { |
| 37 | return s.multiPrompt |
| 38 | } |
| 39 | return s.prompt |
| 40 | } |
| 41 | return "" |
| 42 | } |
| 43 | |
| 44 | func (s *shellReader) readPasswordErr() (string, error) { |
| 45 | prompt := "" |
no outgoing calls
no test coverage detected