terminal-renderer.js 246 B

123456789101112131415
  1. 'use strict';
  2. import Renderer from './renderer';
  3. export default class TerminalRenderer extends Renderer {
  4. constructor() {
  5. super();
  6. }
  7. render(info) {
  8. console.log (info);
  9. }
  10. getInput(question) {
  11. return prompt(question);
  12. }
  13. }