PHP Classes

File: vendor/wp-cli/php-cli-tools/examples/colors.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/wp-cli/php-cli-tools/examples/colors.php   Download  
File: vendor/wp-cli/php-cli-tools/examples/colors.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 19 days ago
Size: 1,754 bytes
 

Contents

Class file image Download
<?php
// Samples. Lines marked with * should be colored in output
// php examples/colors.php
// * All output is run through \cli\Colors::colorize before display
// * All output is run through \cli\Colors::colorize before display
// * All output is run through \cli\Colors::colorize before display
// * All output is run through \cli\Colors::colorize before display
// All output is run through \cli\Colors::colorize before display
// * All output is run through \cli\Colors::colorize before display
// php examples/colors.php | cat
// All output is run through \cli\Colors::colorize before display
// * All output is run through \cli\Colors::colorize before display
// All output is run through \cli\Colors::colorize before display
// * All output is run through \cli\Colors::colorize before display
// All output is run through \cli\Colors::colorize before display
// All output is run through \cli\Colors::colorize before display

require_once 'common.php';

\
cli\line(' %C%5All output is run through %Y%6\cli\Colors::colorize%C%5 before display%n');

echo \
cli\Colors::colorize(' %C%5All output is run through %Y%6\cli\Colors::colorize%C%5 before display%n', true) . "\n";
echo \
cli\Colors::colorize(' %C%5All output is run through %Y%6\cli\Colors::colorize%C%5 before display%n') . "\n";

\
cli\Colors::enable(); // Forcefully enable
\cli\line(' %C%5All output is run through %Y%6\cli\Colors::colorize%C%5 before display%n');

\
cli\Colors::disable(); // Disable forcefully!
\cli\line(' %C%5All output is run through %Y%6\cli\Colors::colorize%C%5 before display%n', true);
\
cli\Colors::enable(false); // Enable, but not forcefully
\cli\line(' %C%5All output is run through %Y%6\cli\Colors::colorize%C%5 before display%n');