Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add status messages to CLI operations for better user feedback #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Soroushsrd
Copy link
Contributor

Fixes #146:

This PR adds user-friendly status messages to CLI operations, making it clearer what actions are being performed during execution.

Changes:

  • Added StatusType enum with different operation states (Creating, Adding, etc.)
  • Implemented color-coded terminal output for different operations
  • Added status messages throughout the codebase for operations like creating migrations, adding fields, etc.
  • Ensured messages are concise and helpful for end users
  • Added placeholders for future additions
  • Added tests to ensure the added code works as intended

Copy link

codecov bot commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 83.13609% with 57 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cot-cli/src/migration_generator.rs 83.44% 47 Missing and 2 partials ⚠️
cot-cli/src/utils.rs 76.47% 8 Missing ⚠️
Flag Coverage Δ
rust 78.72% <83.13%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot-cli/src/new_project.rs 95.55% <100.00%> (+0.43%) ⬆️
cot-cli/src/utils.rs 53.06% <76.47%> (+24.48%) ⬆️
cot-cli/src/migration_generator.rs 81.29% <83.44%> (+1.36%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print out what the CLI is doing
1 participant