using System; namespace RedisManager.Utils { /// /// Utility class for formatting console output with ANSI color codes. /// Provides methods to wrap text with different colors for enhanced readability. /// public static class Output { /// /// Wraps the specified text with ANSI green color codes. /// /// The text to colorize /// The text wrapped with green ANSI color codes public static string Green(string text) => $"\u001b[32m{text}\u001b[0m"; /// /// Wraps the specified text with ANSI red color codes. /// /// The text to colorize /// The text wrapped with red ANSI color codes public static string Red(string text) => $"\u001b[31m{text}\u001b[0m"; /// /// Wraps the specified text with ANSI yellow color codes. /// /// The text to colorize /// The text wrapped with yellow ANSI color codes public static string Yellow(string text) => $"\u001b[33m{text}\u001b[0m"; /// /// Wraps the specified text with ANSI blue color codes. /// /// The text to colorize /// The text wrapped with blue ANSI color codes public static string Blue(string text) => $"\u001b[34m{text}\u001b[0m"; /// /// Wraps the specified text with ANSI cyan color codes. /// /// The text to colorize /// The text wrapped with cyan ANSI color codes public static string Cyan(string text) => $"\u001b[36m{text}\u001b[0m"; /// /// Wraps the specified text with ANSI magenta color codes. /// /// The text to colorize /// The text wrapped with magenta ANSI color codes public static string Magenta(string text) => $"\u001b[35m{text}\u001b[0m"; /// /// Wraps the specified text with ANSI white color codes. /// /// The text to colorize /// The text wrapped with white ANSI color codes public static string White(string text) => $"\u001b[37m{text}\u001b[0m"; } }