handlePrompt asks user a single line input.
(r *Request)
| 127 | |
| 128 | // handlePrompt asks user a single line input. |
| 129 | func handlePrompt(r *Request) (interface{}, error) { |
| 130 | fmt.Print(r.Args.One().MustString()) |
| 131 | var s string |
| 132 | _, err := fmt.Scanln(&s) |
| 133 | return s, err |
| 134 | } |
| 135 | |
| 136 | // handleGetPass reads a line of input from a terminal without local echo. |
| 137 | func handleGetPass(r *Request) (interface{}, error) { |
nothing calls this directly
no test coverage detected