Created
January 24, 2019 13:08
-
-
Save stefpe/85daabd25fa7b9658d1ca616a403c634 to your computer and use it in GitHub Desktop.
Own robo task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MyRunner\Commands; | |
| use Robo\Tasks; | |
| /** | |
| * Class RoboFile | |
| * @package MyRunner\Commands | |
| */ | |
| class RoboFile extends Tasks | |
| { | |
| public function run() | |
| { | |
| $this->io()->progressStart(100); | |
| for ($i = 0; $i < 10; $i++) { | |
| $this->io()->progressAdvance(10); | |
| sleep(1); | |
| } | |
| $this->io()->progressFinish(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment