Cloud-CV / Cloud-CV/evalai-cli

[enhancement] Use different color for command usage examples within messages

Open
#243 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
57
Forks
70
PR merge metrics
No merged PRs in 30d

Description

#### Current Behaviour:
When a command is to be shown in a message as a usage example, the current way is to use backticks (`) to enclose it. This is hard to read as the rest of the message is of the same color.
![current-message](https://user-images.githubusercontent.com/37668193/71675237-59ef5e00-2da3-11ea-87d7-bb1901503b05.PNG)

#### Expected Behavior:
Use a different color for the commands and a different color for the rest of the message. This should be done by using a function to parse the string, fetch the substring within the backticks (`) and return a complete message as expected with the part in backticks being shown in a different color.
That is:
![proposed-behaviour](https://user-images.githubusercontent.com/37668193/71675388-ae92d900-2da3-11ea-8277-ea23d5a04c19.PNG)

As red, yellow, white and green are used for other types by convention, I think cyan (as shown above) can be a good choice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.