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

Add optional machine-readable output format #13

Open
bnjbvr opened this issue Feb 7, 2022 · 3 comments
Open

Add optional machine-readable output format #13

bnjbvr opened this issue Feb 7, 2022 · 3 comments

Comments

@bnjbvr
Copy link
Owner

bnjbvr commented Feb 7, 2022

No description provided.

@Bromeon
Copy link
Contributor

Bromeon commented Apr 28, 2022

This would be very nice, especially for CI setups and scripting.

I was thinking about using the application's exit code as well, which is currently used for errors only.
In case you don't want to do that for all cargo machete invocations, what do you think of an approach like:

git diff --exit-code

(doc) which returns 1 on differences and 0 if all is OK?
If there are errors, it could return 2 (or anything non-0), so differentiation is still possible for those needing it.

@bnjbvr
Copy link
Owner Author

bnjbvr commented Apr 29, 2022

Would be very nice to have, and I think we could do that on all machete invocations (i.e. not mandating --exit-code). Would you be interested in implementing this?

@Bromeon
Copy link
Contributor

Bromeon commented Apr 29, 2022

Gladly! I could have a look at it on the weekend 🙂

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