[PR #6] [MERGED] 🎨 style(run.sh): Add color and formatting for console output #8

Closed
opened 2025-11-20 04:14:16 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/6
Author: @dragonfire1119
Created: 9/16/2024
Status: Merged
Merged: 10/5/2024
Merged by: @dragonfire1119

Base: masterHead: calculate-php-pool-memory-usage-and-optimization


📝 Commits (1)

  • cc063c2 🎨 style(run.sh): Add color and formatting for console output

📊 Changes

1 file changed (+139 additions, -120 deletions)

View changed files

📝 calculate-php-pool/run.sh (+139 -120)

📄 Description

This commit introduces a set of functions and variables to provide colorful and formatted console output for the run.sh script. It includes the following changes:

  • Added color variables for ANSI escape codes (BLUE, GREEN, YELLOW, RED, BOLD, NC).
  • Added Unicode characters for various symbols (CHECK_MARK, CROSS_MARK, RIGHT_ARROW, INFO_MARK).
  • Created print functions for success, warning, and error messages.
  • Displayed a welcome message with community links and support information.
  • Formatted the memory output to display in MB or GB as appropriate.
  • Improved the formatting and readability of the script's output.

The primary goal of these changes is to enhance the user experience and make the script's output more visually appealing and informative.

Summary by CodeRabbit

  • New Features

    • Enhanced user interaction with color-coded output for messages.
    • Expanded welcome message with community links and support information.
    • Added section for optimization suggestions based on memory usage.
    • Prompt for updating PHP-FPM pool configuration with backup option.
  • Improvements

    • Refined logic for detecting PHP-FPM processes and improved error handling.
    • Streamlined memory usage calculations and improved output readability.
    • Clearer prompts for selecting PHP-FPM version and restarting the service.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bigbeartechworld/big-bear-scripts/pull/6 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 9/16/2024 **Status:** ✅ Merged **Merged:** 10/5/2024 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `calculate-php-pool-memory-usage-and-optimization` --- ### 📝 Commits (1) - [`cc063c2`](https://github.com/bigbeartechworld/big-bear-scripts/commit/cc063c21f7cab7f28712b83884439e6a7f48adfa) 🎨 style(run.sh): Add color and formatting for console output ### 📊 Changes **1 file changed** (+139 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `calculate-php-pool/run.sh` (+139 -120) </details> ### 📄 Description This commit introduces a set of functions and variables to provide colorful and formatted console output for the `run.sh` script. It includes the following changes: - Added color variables for ANSI escape codes (BLUE, GREEN, YELLOW, RED, BOLD, NC). - Added Unicode characters for various symbols (CHECK_MARK, CROSS_MARK, RIGHT_ARROW, INFO_MARK). - Created print functions for success, warning, and error messages. - Displayed a welcome message with community links and support information. - Formatted the memory output to display in MB or GB as appropriate. - Improved the formatting and readability of the script's output. The primary goal of these changes is to enhance the user experience and make the script's output more visually appealing and informative. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced user interaction with color-coded output for messages. - Expanded welcome message with community links and support information. - Added section for optimization suggestions based on memory usage. - Prompt for updating PHP-FPM pool configuration with backup option. - **Improvements** - Refined logic for detecting PHP-FPM processes and improved error handling. - Streamlined memory usage calculations and improved output readability. - Clearer prompts for selecting PHP-FPM version and restarting the service. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#8