Comments (3)
Hey @alexjurkiewicz,
I'm thinking about another solution: to have yamllint detect if output is a terminal or if it is a file / a pipe. Then, colours would only be printed for terminals. What do you think?
from yamllint.
That's good, but I would prefer default behaviour like grep: default is
Auto detection, but you can force colours on or off. Some logging systems
support ANSI colors.
On Fri, 12 Aug 2016, 7:08 PM Adrien VergΓ© [email protected] wrote:
Hey @alexjurkiewicz https://github.com/alexjurkiewicz,
I'm thinking about another solution: to have yamllint detect if output is
a terminal or if it is a file / a pipe. Then, colours would only be printed
for terminals. What do you think?β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#14 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXKddN4nFcUlwWzD952rox-Z-ZN73-Jks5qfDgggaJpZM4JZSMt
.
from yamllint.
I understand. I'll merge the auto-detection feature I just implemented since I think it will serve 80% use-cases, and anyone is free to implement a --format standard-color
option.
from yamllint.
Related Issues (20)
- `test_run_with_user_global_config_file` fails if `XDG_CONFIG_HOME` is set HOT 2
- flake8 β ruff? HOT 9
- New-line problem on Windows HOT 2
- Enable ruff format? HOT 7
- problemfixer.py", line 256, in fix_wrong_indentation HOT 2
- Feature Request: Support for Configuration in `pyproject.toml` HOT 2
- Optional extended detection in key-duplicates HOT 3
- Create GitHub releases with changelogs HOT 6
- EditorConfig support HOT 1
- Weird lint error on github action yaml HOT 1
- 1.35.0 broke the "ignore" feature HOT 8
- Is there a quick way of enabling all rules?
- Check values for empty strings if quotas
- Expected <document start> but found <scalar> syntax error wrt comment line between scalars HOT 1
- Snap release HOT 2
- "string value is redundantly quoted with single quotes" when string contains line break and backslash HOT 8
- yamllint should provide meaningful output if no results found HOT 6
- "string value is redundantly quoted with single quotes" when string is a timestamp HOT 1
- False positive with github actions yaml HOT 3
- option to print the configuration file path that is being used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yamllint.