From a8fbfb8a210eb791bba29e036c9183098306cb59 Mon Sep 17 00:00:00 2001 From: edalzell Date: Thu, 11 Jun 2026 16:18:35 -0700 Subject: [PATCH 1/2] check for interactive session --- src/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 478b52d..22a8a8f 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -1018,7 +1018,7 @@ protected function enableStatamicPro() $statusCode = (new Please($this->output)) ->cwd($this->absolutePath) - ->run('pro:enable'); + ->run('pro:enable', $this->input->isInteractive() ? '' : '--no-interaction'); if ($statusCode !== 0) { throw new RuntimeException('There was a problem enabling Statamic Pro!'); From 703634caae54aa933e946cbbc0d287715e672cb4 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 29 Jul 2026 08:40:09 -0400 Subject: [PATCH 2/2] avoid empty argument --- src/NewCommand.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 22a8a8f..4f5ca75 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -1016,9 +1016,15 @@ protected function enableStatamicPro() return $this; } + $command = ['pro:enable']; + + if (! $this->input->isInteractive()) { + $command[] = '--no-interaction'; + } + $statusCode = (new Please($this->output)) ->cwd($this->absolutePath) - ->run('pro:enable', $this->input->isInteractive() ? '' : '--no-interaction'); + ->run(...$command); if ($statusCode !== 0) { throw new RuntimeException('There was a problem enabling Statamic Pro!');