Support multiple extra args with spaces
e.g. `versa test --testdox --filter foo`
This commit is contained in:
parent
4ebc156137
commit
8c9f36151b
5 changed files with 9 additions and 8 deletions
|
@ -62,7 +62,7 @@ final class BuildCommand extends AbstractCommand
|
|||
if ($isDockerCompose) {
|
||||
$process = Process::create(
|
||||
command: ['docker', 'compose', 'build'],
|
||||
extraArgs: $extraArgs,
|
||||
extraArgs: explode(separator: ' ', string: $extraArgs),
|
||||
workingDir: $workingDir,
|
||||
);
|
||||
|
||||
|
@ -77,7 +77,7 @@ final class BuildCommand extends AbstractCommand
|
|||
case ProjectType::Sculpin->value:
|
||||
$process = Process::create(
|
||||
command: ['./vendor/bin/sculpin', 'generate'],
|
||||
extraArgs: $extraArgs,
|
||||
extraArgs: explode(separator: ' ', string: $extraArgs),
|
||||
workingDir: $workingDir,
|
||||
);
|
||||
|
||||
|
@ -90,7 +90,7 @@ final class BuildCommand extends AbstractCommand
|
|||
case ProjectType::Fractal->value:
|
||||
$process = Process::create(
|
||||
command: ['npx', 'fractal', 'build'],
|
||||
extraArgs: $extraArgs,
|
||||
extraArgs: explode(separator: ' ', string: $extraArgs),
|
||||
workingDir: $workingDir,
|
||||
);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ final class InstallCommand extends AbstractCommand
|
|||
language: $this->getProjectLanguage($filesystem, $workingDir, $input),
|
||||
workingDir: $workingDir,
|
||||
),
|
||||
extraArgs: $extraArgs,
|
||||
extraArgs: explode(separator: ' ', string: $extraArgs),
|
||||
workingDir: $workingDir,
|
||||
);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ final class TestCommand extends AbstractCommand
|
|||
// TODO: commands in Docker Compose?
|
||||
$process = Process::create(
|
||||
command: $command,
|
||||
extraArgs: $extraArgs,
|
||||
extraArgs: explode(separator: ' ', string: $extraArgs),
|
||||
workingDir: $workingDir,
|
||||
);
|
||||
|
||||
|
|
Reference in a new issue