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

Automatically detect and enable color if terminal supports it #3311

Open
mkcp opened this issue Dec 10, 2024 · 0 comments
Open

Automatically detect and enable color if terminal supports it #3311

mkcp opened this issue Dec 10, 2024 · 0 comments
Labels
enhancement ✨ New feature or request

Comments

@mkcp
Copy link
Contributor

mkcp commented Dec 10, 2024

Describe the behavior you'd like

Currently, users must specify if they want to disable terminal color (--no-color), or use a --log-format without one (e.g. json). Using https://github.com/jwalton/go-supportscolor or something similar (s/o to @phillebaba) we can check the current terminal's behavior and enable/disable color accordingly. Any user-supplied input from flags or env vars would take precedence in this case (using the usual config precedence).

Related #3306

@mkcp mkcp added the enhancement ✨ New feature or request label Dec 10, 2024
@mkcp mkcp added this to Zarf Dec 10, 2024
@github-project-automation github-project-automation bot moved this to Triage in Zarf Dec 10, 2024
@mkcp mkcp moved this from Triage to Backlog in Zarf Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant