Skip to content

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
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

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.

3 participants