MCPcopy
hub / github.com/abiosoft/ishell / rlPrompt

Method rlPrompt

reader.go:34–42  ·  view source on GitHub ↗

rlPrompt returns the proper prompt for readline based on showPrompt and prompt members.

()

Source from the content-addressed store, hash-verified

32// rlPrompt returns the proper prompt for readline based on showPrompt and
33// prompt members.
34func (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
44func (s *shellReader) readPasswordErr() (string, error) {
45 prompt := ""

Callers 3

readLineMethod · 0.95
SetPromptMethod · 0.80
ShowPromptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected