(r io.Reader, w io.Writer, printer Printer, logger trace.Printer)
| 61 | } |
| 62 | |
| 63 | func NewUI(r io.Reader, w io.Writer, printer Printer, logger trace.Printer) UI { |
| 64 | return &terminalUI{ |
| 65 | stdin: r, |
| 66 | stdout: w, |
| 67 | printer: printer, |
| 68 | logger: logger, |
| 69 | scanner: bufio.NewScanner(r), |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | func (ui terminalUI) Writer() io.Writer { |
| 74 | return ui.stdout |
no outgoing calls
no test coverage detected