<?php

namespace HelpGent;

// 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';
\HelpGent\cli\line('  %C%5All output is run through %Y%6\\cli\\Colors::colorize%C%5 before display%n');
echo \HelpGent\cli\Colors::colorize('  %C%5All output is run through %Y%6\\cli\\Colors::colorize%C%5 before display%n', \true) . "\n";
echo \HelpGent\cli\Colors::colorize('  %C%5All output is run through %Y%6\\cli\\Colors::colorize%C%5 before display%n') . "\n";
\HelpGent\cli\Colors::enable();
// Forcefully enable
\HelpGent\cli\line('  %C%5All output is run through %Y%6\\cli\\Colors::colorize%C%5 before display%n');
\HelpGent\cli\Colors::disable();
// Disable forcefully!
\HelpGent\cli\line('  %C%5All output is run through %Y%6\\cli\\Colors::colorize%C%5 before display%n', \true);
\HelpGent\cli\Colors::enable(\false);
// Enable, but not forcefully
\HelpGent\cli\line('  %C%5All output is run through %Y%6\\cli\\Colors::colorize%C%5 before display%n');
