Colors on the CLI #3671
litchipi
started this conversation in
Show and tell
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
It's like a cyberpunk theme |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While implementing #3294, I had to make choices on what colors to use to display important informations.
I organised styles by their utility in a
Style
enum with a variant for each type of information, and the methodstyle
to generate a styled text, to be used like this:Style:Id.style(some_id)
Here is the variants and their colors that I got now:
You can reproduce this by:
test_cli_colors
branchmassa/massa-client
, runcargo run
wallet_info
Some other examples:
Beta Was this translation helpful? Give feedback.
All reactions