mirror of
https://github.com/opdavies/versa.git
synced 2025-02-08 18:35:03 +00:00
Fix args in run command
This commit is contained in:
parent
53eb833f85
commit
d541f064a5
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
None.
|
### Fixed
|
||||||
|
|
||||||
|
- Fix `args` in `run` command.
|
||||||
|
|
||||||
## 0.3.0 (2024-02-25)
|
## 0.3.0 (2024-02-25)
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ final class RunCommand extends AbstractCommand
|
||||||
|
|
||||||
if ($isDockerCompose) {
|
if ($isDockerCompose) {
|
||||||
$process = Process::create(
|
$process = Process::create(
|
||||||
args: $args,
|
args: explode(separator: ' ', string: $args ?? ''),
|
||||||
command: ['docker', 'compose', 'up'],
|
command: ['docker', 'compose', 'up'],
|
||||||
workingDir: $workingDir,
|
workingDir: $workingDir,
|
||||||
);
|
);
|
||||||
|
@ -76,7 +76,7 @@ final class RunCommand extends AbstractCommand
|
||||||
switch ($projectType) {
|
switch ($projectType) {
|
||||||
case ProjectType::Fractal->value:
|
case ProjectType::Fractal->value:
|
||||||
$process = Process::create(
|
$process = Process::create(
|
||||||
args: $args,
|
args: explode(separator: ' ', string: $args ?? ''),
|
||||||
command: ['npx', 'fractal', 'start', '--sync'],
|
command: ['npx', 'fractal', 'start', '--sync'],
|
||||||
workingDir: $workingDir,
|
workingDir: $workingDir,
|
||||||
);
|
);
|
||||||
|
@ -87,7 +87,7 @@ final class RunCommand extends AbstractCommand
|
||||||
|
|
||||||
case ProjectType::Sculpin->value:
|
case ProjectType::Sculpin->value:
|
||||||
$process = Process::create(
|
$process = Process::create(
|
||||||
args: $args,
|
args: explode(separator: ' ', string: $args ?? ''),
|
||||||
command: ['./vendor/bin/sculpin', 'generate', '--server', '--watch'],
|
command: ['./vendor/bin/sculpin', 'generate', '--server', '--watch'],
|
||||||
workingDir: $workingDir,
|
workingDir: $workingDir,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue