Cloud-CV / Cloud-CV/evalai-cli
[enhancement] Define wrapper functions for click's echo function
- Dominant language
- Python
- Stars
- 57
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
## Current Implementation:
We are calling click's echo function directly each time we call it.
## The implementation I propose:
Instead of calling it directly, It sounds good to define wrapper functions like
```python
def print_error(message, bold=True):
echo(
style(
message,
bold=bold,
fg="red"
)
)
def print_success(message, bold=True):
echo(
style(
message,
bold=bold,
fg="green"
)
)
```
and call them to make the codes more descriptive.
Contributor guide
Research direction
No file, test, or entry point is named. Locate the CLI call sites that invoke Click's echo function directly, review how their messages are styled, and verify that the relevant output remains equivalent after descriptive wrappers are used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100