ReadLine returns a line of text (a command) read from the user. prompt is printed before reading the command.
(prompt string)
| 56 | // ReadLine returns a line of text (a command) read from the user. |
| 57 | // prompt is printed before reading the command. |
| 58 | func (r *readlineUI) ReadLine(prompt string) (string, error) { |
| 59 | r.rl.SetPrompt(prompt) |
| 60 | return r.rl.Readline() |
| 61 | } |
| 62 | |
| 63 | // Print shows a message to the user. |
| 64 | // It is printed over stderr as stdout is reserved for regular output. |
nothing calls this directly
no outgoing calls
no test coverage detected