-
Notifications
You must be signed in to change notification settings - Fork 81
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
base: main
Are you sure you want to change the base?
Add colors #116
Conversation
lazy_static = "1.4.0" | ||
|
||
[dev-dependencies] |
There was a problem hiding this comment.
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"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again with the path
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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 :)