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 on the get_operations command #3658

Closed
wants to merge 0 commits into from

Conversation

litchipi
Copy link
Contributor

@litchipi litchipi commented Mar 8, 2023

Implements #3294 for the REPL get_operations

Adds color on the CLI output to display more effectively operations informations.

Screenshot Capture d’écran du 2023-03-08 11-46-08

Try it on your own and tell me if you want some other colors.

@modship
Copy link
Member

modship commented Mar 8, 2023

Hi @litchipi, nice !

I think it's better to have one PR with all client cmd we should color. And create 1 PR for each cmd to merge in the first branch.

in this way, all color cli cmd will be merge in same time and not step by step.

What do you think ?

for operation_info in self {
println!("{}", operation_info);
for info in self {
print!("Operation {}", style(info.id).color256(175));
Copy link
Member

Choose a reason for hiding this comment

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

it is possible to have the color in enum or constant ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For sure, I'll try to do something more generic to have something more elegant

@litchipi
Copy link
Contributor Author

litchipi commented Mar 8, 2023

Seams like a nice idea ! I'm gonna do this now

@litchipi litchipi closed this Mar 8, 2023
@litchipi litchipi force-pushed the client_cli_colors branch from 2273cdf to ffeab4b Compare March 8, 2023 13:21
@litchipi
Copy link
Contributor Author

litchipi commented Mar 8, 2023

I did something wrong it closed the PR
Sorry I'm gonna re-open a new one :-|

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.

2 participants