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

Merged
merged 1 commit into from
Feb 25, 2025

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%) ⬆️

Copy link
Member

@m4tx m4tx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one tiny comment before this will be ready to merge; apart from it, this looks like a good change!

@Soroushsrd Soroushsrd force-pushed the feature/cli-status-messages branch from 97a4972 to b3ac222 Compare February 25, 2025 20:58
Copy link
Member

@m4tx m4tx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution!

@m4tx m4tx merged commit a54bc7f into cot-rs:master Feb 25, 2025
20 checks passed
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
2 participants