src/Lib/ShellTool.php
public static function color($text, $color)
    {
        if (isset(ShellTool::$colors[$color])) {
            return ShellTool::$colors[$color]['start'] . $text . ShellTool::$colors[$color]['close'];
        } else {
            return $text;
        }
    }
public static function color($text, $color)
    {
        if (isset(ShellTool::$colors[$color])) {
            return ShellTool::$colors[$color]['start'] . $text . ShellTool::$colors[$color]['close'];
        } else {
            return $text;
        }
    }
public static function color ( $ text , $ color ) { if ( isset ( ShellTool :: $ colors [ $ color ] ) ) { return ShellTool :: $ colors [ $ color ] [ 'start' ] . $ text . ShellTool :: $ colors [ $ color ] [ 'close' ] ; } else { return $ text ; } }
Return the given text formatted in the given color

@param string $text
@param string $color
@return string
Return the given text formatted in the given color