From 36f5efa23b4bc6e2c1f5b01195de8aa2b931cec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20P=C3=AD=C5=A1a?= Date: Tue, 28 Feb 2023 10:02:35 +0100 Subject: [PATCH] Add CI setup to the install command --- src/Commands/InstallCommand.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 4f73101..2ace18d 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -12,6 +12,12 @@ class InstallCommand extends Command public function handle(): void { + if ($this->ask('Do you wish to setup CI?')) { + exec('composer require rockero-cz/ci'); + + $this->call('vendor:publish', ['--provider' => 'Rockero\\CI\\CIServiceProvider']); + } + $this->call('vendor:publish', ['--provider' => 'Rockero\\StarterKit\\StarterKitServiceProvider']); } }