mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e46135be0a
- Turn sake into a symfony/console app - Avoid using HTTPRequest for CLI interaction - Implement abstract hybrid execution path
24 lines
655 B
PHP
24 lines
655 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Cli\Tests\SakeTest;
|
|
|
|
use SilverStripe\Dev\BuildTask;
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\PolyExecution\PolyOutput;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
|
|
class TestBuildTask extends BuildTask implements TestOnly
|
|
{
|
|
protected static string $commandName = 'test-build-task';
|
|
|
|
protected string $title = 'my title';
|
|
|
|
protected static string $description = 'command for testing build tasks display as expected';
|
|
|
|
protected function execute(InputInterface $input, PolyOutput $output): int
|
|
{
|
|
$output->writeln('This output is coming from a build task');
|
|
return 0;
|
|
}
|
|
}
|