Add a run command for Sculpin projects

This commit is contained in:
Oliver Davies 2024-02-19 08:00:00 +00:00
parent 6e87e3518f
commit 1215548b35

11
versa
View file

@ -33,6 +33,17 @@ $application->setCode(function (InputInterface $input): int {
$process->run();
break;
case 'run':
switch ($input->getOption('type')) {
case 'sculpin':
// TODO: how to pass arbitrary arguments, such as `--port 8001`?
$process = new Process(command: ['./vendor/bin/sculpin', 'generate', '--server', '--watch']);
$process->setTty(true);
$process->run();
break;
}
break;
case 'test':
// TODO: PHPUnit, Pest or ParaTest.
// TODO: commands in Docker Compose?