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

Add colors #116

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Add colors #116

wants to merge 7 commits into from

Conversation

DeliciousBounty
Copy link
Collaborator

Hey,
I just added support for colors.
Tell me if the "colored" struct need to be improve or maybe remove some fields.
Looking for any feedback :)

lazy_static = "1.4.0"

[dev-dependencies]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is nothing in them...

Cargo.toml Outdated
@@ -22,13 +22,20 @@ thiserror = "1.0.37"
tokio = { version = "^1.23", features = ["rt-multi-thread", "macros"]}
clap = { version = "4.0.29", features = ["derive"] }
const_format = "0.2.30"
cherrybomb-engine = {path = "cherrybomb-engine"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again with the path

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes not need to comment on that.
Dev-dependencies does not relevant, so I 've no choice to modify it every time

cherrybomb-engine/Cargo.toml Outdated Show resolved Hide resolved
src/table.rs Outdated
options: &Options,
use_colors: bool,
) -> anyhow::Result<ExitCode> {
let color_choice = if !use_colors {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole thing with the ColorChoice seems rather redundant, you should have just used the static vars directly without an enum

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes , I understand so I removed the enum.

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.

None yet

2 participants