Improve Bash script readability and add color-coded output#346
Closed
mostafasoufi wants to merge 1 commit intowp-cli:mainfrom
Closed
Improve Bash script readability and add color-coded output#346mostafasoufi wants to merge 1 commit intowp-cli:mainfrom
mostafasoufi wants to merge 1 commit intowp-cli:mainfrom
Conversation
- Added color-coded feedback using `tput` for better user interaction - Included progress messages to display each step clearly (e.g., downloading, database creation) - Added confirmation prompt before deleting and recreating the database - Improved overall script readability with organized `echo` statements
Member
|
Thanks for the work on this, @mostafasoufi ! I'm not merging this right now, as we're currently in discussions about the future of this script in general, and whether we might want to switch the entire testing flow over to something like wp-env. I'll keep you updated in here. |
Contributor
Author
|
Sounds good! Happy to help if needed. @schlessera |
This was referenced Oct 6, 2025
swissspidy
added a commit
that referenced
this pull request
Oct 8, 2025
Incorporating changes from #346
Member
|
I incorporated these changes in #356 Still not decided how we proceed with this script though. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the existing Bash script by making it more human-readable and providing better user interaction through the following changes:
Color-Coded Output: Utilizes tput to introduce colored feedback for errors, progress updates, and successful operations.
Progress Feedback: Each major step (WordPress installation, test suite setup, and database management) now provides clear and distinct feedback to the user.
Confirmation for Database Recreation: The script prompts the user to confirm before deleting and recreating an existing test database, ensuring safer operation.
This enhancement will significantly improve the user experience when running the script by making the outputs more readable and informative.