- 
                Notifications
    You must be signed in to change notification settings 
- Fork 24
Open
Labels
good first issueGood for newcomersGood for newcomershacktoberfestIssues suitable for hacktoberfestIssues suitable for hacktoberfest
Description
The HealthChain CLI (healthchain/cli.py) could provide a better developer experience through clearer error messages, more helpful text, and potentially command aliases.
File: healthchain/cli.py
Current state:
The CLI works but could be more beginner-friendly and provide better guidance when errors occur.
Goal:
Improve the CLI user experience through incremental enhancements.
Suggested improvements (pick 2-3 to start):
- Add more descriptive error messages when commands fail
- Improve help text for each command with examples
- Add validation for common user input errors with helpful suggestions
-  Include usage examples in command help (--help)
- Add color-coded output for success/error messages (optional)
- Consider command aliases for frequently used operations
Acceptance Criteria:
- Error messages clearly explain what went wrong AND how to fix it
-  All commands have improved --helptext with examples
- Common error cases provide actionable guidance
- Test the CLI manually to verify improvements
- Update CLI documentation if needed
Example improvements:
# Before
raise ValueError("Invalid configuration")
# After
raise ValueError(
    "Invalid configuration file: 'sandbox' field is required. "
    "Example:\n"
    "  sandbox:\n"
    "    use_case: 'cds'\n"
    "See https://docs.healthchain.org/cli for more information."
)Resources:
- Typer documentation (if using Typer)
- Run healthchain --helpand each subcommand to audit current state
- Look at well-designed CLIs for inspiration (e.g., poetry,black)
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershacktoberfestIssues suitable for hacktoberfestIssues suitable for hacktoberfest
Type
Projects
Status
Todo