silverstripe-framework/tests/php/Cli/SakeTest/TestBuildTask.php
Guy Sartorelli e46135be0a
NEW Refactor CLI interaction with Silverstripe app (#11353)
- Turn sake into a symfony/console app
- Avoid using HTTPRequest for CLI interaction
- Implement abstract hybrid execution path
2024-09-26 17:16:47 +12:00

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;
}
}