-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Raw output option #271
Comments
This is a good point. Meanwhile, if you can tell lychee to output results in JSON format. That's friendlier for jq. |
This should work in
The |
Gonna close this as resolved. Feel free to reopen if it doesn't work as expected. |
Just wanna know how to enable colors in GitLab CI console? No info in README. |
Sorry for the late reply. export NO_COLOR=1
lychee ... or NO_COLOR=1 lychee ... |
No problem, but I meant enable colors :) Anyway neither
Any ideas? |
@alexanderbazhenoff, I took a stab at it here: #1398 |
Sorry for long reply. I have placed a new binary alongside with an old, but named them as Runing the same defaults locally via console is nice and colored anyway: No additional env variables set like COLOR/NO_COLOR in GitLab CI, just raw command run:
What I did wrong in my CI? Or what debug info from me is required? |
I think the issue is on my end. Need to make more changes in the pull request. Apologies for the noise. |
I think it should be always trim colors for output file. |
In this way |
With #1398 being merged, I think we can close this. To recap, the main request for a raw output option has been implemented with There's an ongoing discussion about color output in CI environments, particularly GitLab CI: |
I've also documented the output modes on the documentation website here. |
Instead of #268, have a raw option to generate output that doesn't include emoji and the process indicator. This will help the results be piped into other programs like
jq
that people can then use to transform into JSON on their own. It could look like:The text was updated successfully, but these errors were encountered: