Cloud-CV / Cloud-CV/evalai-cli

[enhancement] Define wrapper functions for click's echo function

Open
#234 2 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 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.