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

GH3138: Add Settings_Color configuration option #2999

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

Conversation

augustoproiete
Copy link
Member

@augustoproiete augustoproiete commented Dec 13, 2020

WIP. Opening a draft PR for feedback at this point to discuss next steps as this seems to require change on the timing when the Cake configuration is read.

Adding this new configuration option requires access to ICakeConfiguration at a much earlier stage in the Cake run lifecycle, more specifically at the time of resolution of DefaultCommand given that it needs an ICakeLog which in turn requires an IConsoleRenderer - and at this point the decision about ANSI vs non-ANSI console is made.

Does it make sense to register an ICakeConfiguration singleton at the very start, instead of reading the config later during bootstrapping or building, or is there a better way?


@augustoproiete augustoproiete force-pushed the add-settings_color-configuration-option branch from da7bc62 to df6bacb Compare December 22, 2020 13:11
@augustoproiete augustoproiete force-pushed the add-settings_color-configuration-option branch from df6bacb to 1eb74af Compare January 24, 2021 23:08
@augustoproiete augustoproiete force-pushed the add-settings_color-configuration-option branch from 1eb74af to 22f73d0 Compare February 7, 2021 22:24
@augustoproiete augustoproiete changed the title GH-2975: Add Settings_Color configuration option GH-3138: Add Settings_Color configuration option Feb 17, 2021
@gep13 gep13 changed the title GH-3138: Add Settings_Color configuration option GH3138: Add Settings_Color configuration option Dec 14, 2021
@augustoproiete
Copy link
Member Author

augustoproiete commented Jun 12, 2022

Meeting of 2022-06-12 - We decided that it's OK to write to the Console in case of errors reading the configuration
/cc @cake-build/cake-team

@augustoproiete augustoproiete self-assigned this Jun 12, 2022
@FreshKhalifa

This comment was marked as spam.

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.

Add support for opting out of ANSI coloring via command-line switch & cake.config
2 participants