diff --git a/examples/renderer/README.md b/examples/renderer/README.md index 30d3b7197..7d066cc80 100755 --- a/examples/renderer/README.md +++ b/examples/renderer/README.md @@ -20,8 +20,7 @@ Verification commands Run the following commands to validate things are rolling as they should. ```bash -# Should force use of normal renderer -# NOTE: we do this to check if the renderer works when packaged +# Should not error using the default renderer while packaged up LANDO_RENDERER_FORCE=1 lando start # Should use the verbose renderer in a non-TTY environment diff --git a/renderers/lando.js b/renderers/lando.js index d710f13d9..dc3867954 100644 --- a/renderers/lando.js +++ b/renderers/lando.js @@ -38,24 +38,24 @@ class LandoRenderer extends DefaultRenderer { return render.join(EOL); } - // async render() { - // const logUpdate = require('log-update'); - // const truncate = require('cli-truncate'); - // const wrap = require('wrap-ansi'); - - // this.updater = logUpdate.create(this.logger.process.stdout); - // this.truncate = truncate; - // this.wrap = wrap; - // this.logger.process.hijack(); - // if (!this.options?.lazy) { - // this.spinner.start(() => { - // this.update(); - // }); - // } - // this.events.on('SHOUD_REFRESH_RENDER', () => { - // this.update(); - // }); - // } + async render() { + const logUpdate = require('log-update'); + const truncate = require('cli-truncate'); + const wrap = require('wrap-ansi'); + + this.updater = logUpdate.create(this.logger.process.stdout); + this.truncate = truncate; + this.wrap = wrap; + this.logger.process.hijack(); + if (!this.options?.lazy) { + this.spinner.start(() => { + this.update(); + }); + } + this.events.on('SHOUD_REFRESH_RENDER', () => { + this.update(); + }); + } } module.exports = LandoRenderer;