Robo tasks and helpers for Pantheon projects.
composer require floe/robo-pantheon
Use the trait in your RoboFile:
class RoboFile extends \Robo\Tasks {
use \Floe\Robo\Pantheon\loadTasks;
}
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2
$this->taskTerminus('art')
->param('param1');
->param('param2');
->option('option1', 'value')
->option('option2')
->run();
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2
$this->taskTerminus('command:subcommand:subcommand')
->params('param1', 'param2')
->options([
'option1' => 'value',
'option2' => true
])
->run()
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2
$this->_terminus('command:subcommand:subcommand', ['param1', 'param2'], ['option1' => 'value', 'option2' => true]);
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2 &&
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2
$this->taskTerminusStack()
->exec('command:subcommand:subcommand', ['param1', 'param2'], ['option1' => 'value', 'option2' => true])
->commandSubcommandSubcommand(['param1', 'param2'], ['option1' => 'value', 'option2' => true])
->run()