-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixed usage of NOMAD_CLI_NO_COLOR env variable. #11168
Conversation
Thank you for looking into this and fixing it! It's weird that this env var was only being ignored in some commands 😅 I pushed a commit to add a CHANLOG entry and some tests. I also changed the logic a bit to read the command UI type and decide if colors should be disabled based on that. This will avoid having to check the env var in multiple places, since it's already being checked in main.go. This change will also help with #10975, since I think you won't need to check for the new env var in Thanks again for the contribution! |
Will do that over the following days. Your approach is certainly nicer -- my (none existent) go knowledge prevented me from knowing about that type cast/check thingy. Thanks for the edits. |
We don't expect any Go knowledge and really appreciate your effort in fixing these issues 🙂 |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #10982