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

DXCDT-321: Fix --no color flag #594

Merged
merged 13 commits into from
Jan 11, 2023
Merged

DXCDT-321: Fix --no color flag #594

merged 13 commits into from
Jan 11, 2023

Conversation

willvedd
Copy link
Contributor

@willvedd willvedd commented Jan 10, 2023

🔧 Changes

Currently, the --no-color flag does not function for most operations. The reason for this failure is because the initialization of Aurora, the third-party color module, is done after the --no-color flag is parsed. The quick remedy here is to re-initialize the Aurora instance once the value of the --no-color flag is known. Ideally, we would reconstruct the code to only initialize the Aurora instance once, but during my trials, I found this to be quite cumbersome, leading to many nil reference errors. This at least fixes the functionality.

Before:
Screen Shot 2023-01-10 at 3 33 40 PM

After:
Screen Shot 2023-01-10 at 3 33 49 PM

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@willvedd willvedd requested a review from a team as a code owner January 10, 2023 20:34
@sergiught sergiught merged commit 958543a into v1 Jan 11, 2023
@sergiught sergiught deleted the DXCDT-321-fix-no-color-flag branch January 11, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants