-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make CLI colors an enum #2654
Make CLI colors an enum #2654
Conversation
Please don't run cargo fmt. We don't use it because it doesn't format code the way we need it to. |
Do you have a formatter I can use or should I just format the code manually? |
Manual formatting matching the existing style of the surrounding code is what we recommend. |
I don't think that's going to work for me. Let me know if this policy changes, I'll be happy to contribute this and more to Rocket! It's by far my favorite framework and I'd love to help with development. |
I understand if this makes you uncomfortable. If choosing not to execute a command is where you draw the line in terms of contributing, I completely respect that decision.
Absolutely, I understand the importance of clarity. In our README, we've included a concise "Contributing" section. In the emboldened Styled point, we've highlighted the expectation to match the existing code style. It's my sincere hope that contributors take a moment to review this section beforehand, which ideally minimizes the need for adjustments afterward.
I've added a |
Thanks, appreciate your thoughts and your work on Rocket. I'll write up a PR implementing this without the formatting. Edit: this is also a great git lesson for me: before making potentially large changes to the code base...make a commit. |
cli_colors
an enum that accepts "auto", "always" and "never" just like cargo--color
. Acts the same way. Backwards compatible: 0 = never, 1 = auto, false = never, true = auto. Fix Force enable color output #2649cargo fmt
. The diff is huge, not sure what happened...did we not runcargo fmt
in a long time or does it accept some settings I should tweak on my side to make formatting consistent with the project?$ cargo fmt --version rustfmt 1.6.0-stable (d5c2e9c 2023-09-13)