()
| 43 | } |
| 44 | |
| 45 | func newUI() driver.UI { |
| 46 | rl, err := readline.New("") |
| 47 | if err != nil { |
| 48 | fmt.Fprintf(os.Stderr, "readline: %v", err) |
| 49 | return nil |
| 50 | } |
| 51 | return &readlineUI{ |
| 52 | rl: rl, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // ReadLine returns a line of text (a command) read from the user. |
| 57 | // prompt is printed before reading the command. |
no outgoing calls
no test coverage detected
searching dependent graphs…