run without color
zachcheung opened this issue · comments
flag.BoolVar(&f.UseColor, "color", true, "Use color in output (works best on dark terminals)")
Firstly, sorry for ignoring the issue template.
Shouldn't it be nocolor
with default false
here? How can it run without color when the default way is color
and the flag is to enable color?
@zachcheung Thanks for taking time out for reporting this, but can you please elaborate on what is the project you are facing this issue with and other details.
![timescaledb-tune](https://private-user-images.githubusercontent.com/964285/254940389-bd24ff55-5a40-4bb4-baab-e6e082fc66b4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTY5OTUsIm5iZiI6MTcxODk1NjY5NSwicGF0aCI6Ii85NjQyODUvMjU0OTQwMzg5LWJkMjRmZjU1LTVhNDAtNGJiNC1iYWFiLWU2ZTA4MmZjNjZiNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQwNzU4MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jOWNhN2VhZGExMTMzYzc0YzFjNjJmOTk4MzIxYTcwMzg5NzEzOTZiY2Y0OTZhOWYzY2Y3NzhjZmQxYTgxMTE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.j4kkUj4LEKj7LxgbJW-QHXSm5sNEQLeW9YZ3vhZFpmA)
@RafiaSabih As you can see, timescaledb-tune
uses color in output by default, and there's a -color
option there but since the default is true
so I don't think it's possible to disable color.
# timescaledb-tune -h
Usage of timescaledb-tune:
-color
Use color in output (works best on dark terminals) (default true)
Hello @zachcheung,
Thanks for reaching out. To run timescaledb-tune
without color, you can use the flag --color=false
. For example: timescaledb-tune --color=false
.
Does this work in your environment or are colors still displayed afterwards?
@jnidzwetzki Wow, I didn't know it's possible to set value to bool flag in go. It works, and thank you for letting me know.