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

Exit Code for duplicates #138

Closed
alexander-schranz opened this issue Apr 1, 2020 · 1 comment · Fixed by #142
Closed

Exit Code for duplicates #138

alexander-schranz opened this issue Apr 1, 2020 · 1 comment · Fixed by #142

Comments

@alexander-schranz
Copy link

I want to use npx inspectpack -s stats.json --action duplicates in my ci to validate if there are duplicates. For this it would be great if it would return a different exit code if it found duplicates or not. So no duplicates exit code 0 and duplicates exit code 1.

@ryan-roemer
Copy link
Member

Seems like a reasonable request for --action duplicates|version maybe with an optional --bail flag?

ryan-roemer added a commit that referenced this issue May 22, 2020
* Feature: Add `--bail` option for `--action duplicates|versions`. Fixes #138 
* Test: Refactor internal test script commands.
* Test: Add actual process execs for `bin` tests.
* Various dependency updates.
* Update CI to 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants