Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spin while execSync #93

Closed
r12r opened this issue Jan 17, 2019 · 1 comment
Closed

spin while execSync #93

r12r opened this issue Jan 17, 2019 · 1 comment

Comments

@r12r
Copy link

r12r commented Jan 17, 2019

Hi! I try to run your beautiful spinner while my script does some execSync calls. But the spinner stops immediately. Any ideas?

Example:

const ora = require('ora');
const childProcess = require('child_process');
const spinner = ora().start();
childProcess.execSync('sleep 2');
spinner.stop();
@sindresorhus
Copy link
Owner

Duplicate of #86

@sindresorhus sindresorhus marked this as a duplicate of #86 Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants