Skip to content
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

run without color #123

Closed
zachcheung opened this issue Jul 11, 2023 · 4 comments
Closed

run without color #123

zachcheung opened this issue Jul 11, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@zachcheung
Copy link

	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 zachcheung added the bug Something isn't working label Jul 11, 2023
@RafiaSabih
Copy link

@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.

@zachcheung
Copy link
Author

timescaledb-tune

@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)

@jnidzwetzki
Copy link
Contributor

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?

@zachcheung
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants