for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mistletoe\Application\Commands;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class RunDueCommand
* @package Mistletoe\Application\Commands
*/
class RunTaskCommand extends AbstractCommand
{
protected function configure()
$this
->setName('run:task')
->setDescription('Run all due tasks')
->addArgument('taskName', InputArgument::REQUIRED, "Which specific registered task")
->addArgument('path', InputArgument::OPTIONAL, "Where is your Mistletoe Project File?");
}
protected function execute(InputInterface $input, OutputInterface $output)
$planner = $this->getTaskPlanner($input->getArgument('path'));
$planner->runTask($input->getArgument('taskName'));