Skip to content

Determine color usage dynamically#296

Draft
ekohl wants to merge 1 commit into
theforeman:masterfrom
ekohl:determine-colors-dynamically
Draft

Determine color usage dynamically#296
ekohl wants to merge 1 commit into
theforeman:masterfrom
ekohl:determine-colors-dynamically

Conversation

@ekohl

@ekohl ekohl commented Oct 23, 2020

Copy link
Copy Markdown
Member

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.

Comment thread lib/kafo/kafo_configure.rb Outdated
@ekohl
ekohl force-pushed the determine-colors-dynamically branch from f633d04 to f09afdc Compare September 21, 2023 17:44
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 f09afdc to 5c7e9f8 Compare July 3, 2025 11:41
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