mirror of
https://github.com/opdavies/versa.git
synced 2025-02-02 07:57:32 +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();
|
$process->run();
|
||||||
break;
|
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':
|
case 'test':
|
||||||
// TODO: PHPUnit, Pest or ParaTest.
|
// TODO: PHPUnit, Pest or ParaTest.
|
||||||
// TODO: commands in Docker Compose?
|
// TODO: commands in Docker Compose?
|
||||||
|
|
Loading…
Reference in a new issue