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

Determine color usage dynamically #296

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 23, 2020

This changes the color usage to be determined dynamically. Prior to this the config was always read. That meant that if the scenario was ever written to disk (using save_configuration), it stored the value of colors_possible? and uses that indefinitely.

After this change, the value of colors will remain nil (determined at runtime) until the user uses --[no-]colors, which is then persisted.

lib/kafo/kafo_configure.rb Outdated Show resolved Hide resolved
This changes the color usage to be determined dynamically. Prior to this
the config was always read. That meant that if the scenario was ever
written to disk (using save_configuration), it stored the value of
colors_possible? and uses that indefinitely.

After this change, the value of colors will remain nil (determined at
runtime) until the user uses --[no-]colors, which is then persisted.
@ekohl ekohl force-pushed the determine-colors-dynamically branch from f633d04 to f09afdc Compare September 21, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants