Skip to content

Commit c8849f7

Browse files
committed
feat: add pause-after-build option to deploy command
1 parent 03515f6 commit c8849f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Command/Project/DeployProjectCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ protected function configure()
7575
->setDescription('Deploy project to an environment')
7676
->setAliases([self::ALIAS])
7777
->addArgument('environment', InputArgument::OPTIONAL, 'The name of the environment to deploy to', 'staging')
78+
->addOption('pause-after-build', null, InputOption::VALUE_NONE, 'Pause deployment after the build step')
7879
->addOption('with-uploads', null, InputOption::VALUE_NONE, 'Import the "uploads" directory during the deployment');
7980
}
8081

@@ -90,6 +91,10 @@ protected function createDeployment(InputInterface $input, OutputInterface $outp
9091
$this->invoke($output, ValidateProjectCommand::NAME, ['environments' => $environment]);
9192
$this->invoke($output, BuildProjectCommand::NAME, array_merge(['environment' => $environment], $withUploadsOption ? ['--with-uploads' => null] : []));
9293

94+
if ($this->getBooleanOption($input, 'pause-after-build')) {
95+
$output->ask('Deployment paused. Press <comment>Enter</comment> to continue');
96+
}
97+
9398
if ($withUploadsOption) {
9499
$this->invoke($output, ImportUploadsCommand::NAME, ['path' => $this->uploadsDirectory, '--environment' => $environment, '--force' => null]);
95100
}

0 commit comments

Comments
 (0)