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 CLI output #3294

Closed
AurelienFT opened this issue Dec 1, 2022 · 4 comments
Closed

Add colors on CLI output #3294

AurelienFT opened this issue Dec 1, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AurelienFT
Copy link
Contributor

AurelienFT commented Dec 1, 2022

It will be more easily to have colors in the CLI outputs. For example this output :

get_operations 21z3jS2zzuv8dZpf7YrHhJugoe3s9NDn7dWmJzdCHQQHmdoaix
Operation 21z3jS2zzuv8dZpf7YrHhJugoe3s9NDn7dWmJzdCHQQHmdoaix[ (in pool)]
In blocks:
    - 2VKNvrkorxr2Qj3LJiYsZ2Jt9H8uL61eTSvkvBRgtoFiaVWCSX
Signature: EJQQXzdoshJihGbq8px2dG4N3MBzaFstwWkiLAYLY9q5gyppeSZhbCoRMnBh1kUXhEsmSH3oR39ik8ronYERoR9Axpnqi
Creator pubkey: P1KbDkC1ajppBoY6vbGX58m9cLBc1zNQXvTde9EuTcwci7nS2rB
Creator address: A12KCLh2bca76aWug4z5pDRekMzxFexYJUecXMuMNypUQQQFd1zn
Id: 21z3jS2zzuv8dZpf7YrHhJugoe3s9NDn7dWmJzdCHQQHmdoaix
Fee: 0
Expire period: 3897
Operation type: ExecuteSC:
    - max_gas:1000000

could have all the differents informations colored to read it more easily.

Tracking PR: #3661

@aoudiamoncef aoudiamoncef added client enhancement New feature or request labels Dec 2, 2022
@qdrn qdrn added the good first issue Good for newcomers label Jan 2, 2023
@qdrn
Copy link
Contributor

qdrn commented Jan 2, 2023

Adding good first issue label. Feel free to remove it if I'm mistaken.

@aoudiamoncef
Copy link
Contributor

Resources:

@litchipi litchipi self-assigned this Mar 8, 2023
@litchipi
Copy link
Contributor

litchipi commented Mar 8, 2023

The client seams to use https://crates.io/crates/console to work with colors, I guess I'll just re-use this directly

@litchipi
Copy link
Contributor

litchipi commented Mar 9, 2023

Added a discussion topic about the choices of the colors: #3671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants