Skip to content

Instantly share code, notes, and snippets.

@stefpe
Created January 24, 2019 13:08
Show Gist options
  • Select an option

  • Save stefpe/85daabd25fa7b9658d1ca616a403c634 to your computer and use it in GitHub Desktop.

Select an option

Save stefpe/85daabd25fa7b9658d1ca616a403c634 to your computer and use it in GitHub Desktop.
Own robo task
<?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