'cf config --color=false' does not turn off all the colors
Please fill out the issue checklist below and provide ALL the requested information.
- [X] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
- [ ] I attempted to run the command with
CF_TRACE=1to help debug the issue. - [X] I am reporting a bug that others will be able to reproduce.
Describe the bug and the command you saw an issue with
When running cf push -f manifest.yml after run cf config --color=false it still shows some all the output colors.
What happened When turning --color=false, only the light blue color would get turned off. The dark blue, green and red colors were still shown.
- Color false:
- Color true:
Expected behavior 'cf config --color=false' should removes all the output colors.
To Reproduce
- Run
cf config --color=false - Run
cf push -f manifest.yml
Provide more context
- platform and shell details: Ubuntu 16.04.5 LTS
- version of the CLI you are running: 6.38.0+7ddf0aadd.2018-08-07, also seen with 6.41.0
- version of the CC API Release you are on: 2.128.0, cf-deployment 7.2.0
Note: As of January 2019, we no longer support API versions older than CF Release v284/CF Deployment v1.7.0 (CAPI Release: 1.46.0 (APIs 2.100.0 and 3.35.0).
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/164401998
The labels on this github issue will be updated when the story is started.
Hey @STiago! Thanks for reporting this issue to us - we reproduced it locally on our machines and we will talk with our PM about prioritizing this issue. Just a heads-up, our PM is on holiday currently.
We think the issue has to do with where each of these sections are coming from. Where you see the colors stripped, this is output from the CLI. Though, anything after "Staging app and tracing logs..." is directly streamed from CAPI. And, it looks like we are not properly removing colored output.
Dev Notes We reproduced this on our stations with the following steps:
$ claim_bosh_lite- Pushed dora -- saw intended colors in output
$ cf push dora - Disabled CF CLI colors
$ cf config --color=false - Pushed Dora again -- saw colors in output still. Colors located under logs we stream from CAPI
Staging app and tracing logs...
Downloading r_buildpack...
Downloading nodejs_buildpack...
...

Confirmed this is still an issue in v7
$ cf -v
cf version 7.0.0-beta.29+947eaab38.2020-01-16
@bwasmith any progress on this? it's open since 5 years 😄
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.
Thank you for your submission. If you still run into this issue with the latest CLI v8, please open a new ticket with the necessary information mentioned in our issue template.