Skip to content

Commit

Permalink
#216: and now fix the issue by using non await import syntax in the r…
Browse files Browse the repository at this point in the history
…enderer
  • Loading branch information
pirog committed Sep 28, 2023
1 parent c4eb35e commit 9292bdd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
3 changes: 1 addition & 2 deletions examples/renderer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 18 additions & 18 deletions renderers/lando.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9292bdd

Please sign in to comment.