Comments (5)
This appears to be related to fatih/color#132.
I can think of three solutions:
- Set
color.NoColor = false
unconditionally. However, this would mess up output resulting from piping operations. - If colorization of the output is considered a component of the output format, introduce a new value for the
--output-format
parameter. However, depending on one's needs, this might warrant a combinatorial explosion of supported values for this parameter (human-nocolor
,ci-nocolor
,sarif-nocolor
...). - If colorization is not considered a component of the output format, introduce a
--color
parameter with the valuesauto
,always
andnever
, similar to howls --color
works. This seems to me to be the most flexible solution, though it requires introducing a new optional parameter.
from kube-score.
Hej @Sebelino!
Hmmmm, that's annoying, I would have expected faith/color to be smarter here. I think that I like option 3 the best, maybe in some sort of combination with automatic detection if we're running inside GitHub Actions.
from kube-score.
I've pushed a hacky fix with auto coloring support that enables color support by default when running on GitHub Actions. Are you building from source, or should I make a new release so that you can test it?
from kube-score.
Hoy, that was quick! I built it from source and it works beautifully now. Didn't even have to supply the --color
flag, although it's still a nice-to-have feature.
Thanks!
from kube-score.
No problem! :-)
from kube-score.
Related Issues (20)
- kube-score container gives error on variable HOT 1
- Can't mix implicit and explicit namespaces HOT 3
- Replace code for Sarif generation with library
- Feature request: Detect duplicate environment variables defined HOT 2
- Ephemeral storage limit check not skipped when `"kube-score/ignore": "container-resources"` annotation is set HOT 2
- [Community] List of companies using kube-score
- Feature request: Support JUnit XML output format HOT 7
- Feature request: fail if port name is longer than 15 characters HOT 2
- how to run kube-score in "report" mode ? returning exit-code 0 regardless of the issues discovered HOT 1
- question: how to ignore init container in multi pod deployment HOT 4
- New Rule: CronJob resource requires Pod restartPolicy set to Never or OnFailure HOT 2
- Feature request: Want optional test annotation into manifest
- kube-score/ignore ignored at pod level inside a statefulset HOT 1
- feature request: topologySpreadConstraints HOT 2
- Feature request: Optional config file instead of CLI arguments HOT 5
- Please submit a PR to update version in krew-index HOT 1
- amd64 docker images have not been published HOT 5
- Newest release(s) not respecting kube-score/ignore annotations. HOT 3
- Add flag --run-test strings HOT 8
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 kube-score.