oficinasuport-wp-theme/vendor/wp-cli/php-cli-tools/examples/notify.php

13 lines
446 B
PHP
Raw Normal View History

2022-10-24 23:58:16 +02:00
<?php
require_once 'common.php';
\cli\line("========\nDots\n");
test_notify(new \cli\notify\Dots(' \cli\notify\Dots cycles through a set number of dots'));
test_notify(new \cli\notify\Dots(' You can disable the delay if ticks take longer than a few milliseconds', 5, 0), 10, 100000);
\cli\line("\n========\nSpinner\n");
test_notify(new \cli\notify\Spinner(' \cli\notify\Spinner cycles through a set of characters to emulate a spinner'));