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 when finding any issues in cli mode #108

Open
planetsLightningArrester opened this issue Jan 4, 2024 · 0 comments
Open

Exit code when finding any issues in cli mode #108

planetsLightningArrester opened this issue Jan 4, 2024 · 0 comments

Comments

@planetsLightningArrester

Is your feature request related to a problem? Please describe.
I searched the README and the Wiki but couldn't find a built-in way to check if CLI call of npx electronegativity found any errors in an automated way. I saw it's possible to run a JS script importing electronegativity, but I'd like to use it in the CLI as part of my workflow validation, so it'd be easier if I could get only a pass/fail result as an exit code instead of creating a script to try/catch it

Describe the solution you'd like
Create an option to return an exit code in CLI mode when issues are detected

Describe alternatives you've considered
I could create a script, as I mentioned, but I could also pipe the stdout result to grep for No issues were found. The drawback of this approach is that it's not cross-platform. So, my Windows development would suffer, and kind of boils down back to making a script. An exit code would solve it.

Additional context
Nothing to add.

Thank you!

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

1 participant