mirror of
https://github.com/opdavies/versa.git
synced 2025-01-22 19:47:33 +00:00
Add a run
command for Sculpin projects
This commit is contained in:
parent
6e87e3518f
commit
1215548b35
11
versa
11
versa
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue