Skip to content

Commit

Permalink
Merge pull request #356 from tdranv/expose-no-spinner-env-var
Browse files Browse the repository at this point in the history
Disable spinner when running in CI
  • Loading branch information
kamiazya committed Feb 13, 2023
2 parents ba2b3e7 + a771115 commit 7f64edb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const spinner = ora({
text: 'Finding files',
color: 'white',
interval: 100000,
isEnabled: program.spinner
isEnabled: program.spinner === 'false' ? false : null
});

let exitCode = 0;
Expand Down Expand Up @@ -137,10 +137,8 @@ function dependencyFilter() {
const dir = path.dirname(relPath) + '/';
const file = path.basename(relPath);

if (program.spinner) {
spinner.text = chalk.grey(dir) + chalk.cyan(file);
spinner.render();
}
spinner.text = chalk.grey(dir) + chalk.cyan(file);

prevFile = traversedFilePath;
}
};
Expand Down

0 comments on commit 7f64edb

Please sign in to comment.