Skip to content

Commit

Permalink
use promises instead of callback
Browse files Browse the repository at this point in the history
  • Loading branch information
rnegron committed Nov 26, 2024
1 parent f95dd7b commit a128bcb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cli/src/oclif/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class InitCommand extends BaseCommand {
const env = yeoman.createEnv();
env.registerStub(ProjectGenerator, 'zapier:integration');

env.run('zapier:integration', { path, template }, () => {
this.log();
this.log(`A new integration has been created in directory "${path}".`);
this.log(`Read all about it in "${join(path, 'README.md')}".`);
});
await env.run('zapier:integration', { path, template });

this.log();
this.log(`A new integration has been created in directory "${path}".`);
this.log(`Read all about it in "${join(path, 'README.md')}".`);
}
}

Expand Down

0 comments on commit a128bcb

Please sign in to comment.