From 42fbdb6e2f0d674d32c98d548e8d9e1cc66edb9e Mon Sep 17 00:00:00 2001 From: Andrew Mead Date: Mon, 4 Nov 2024 12:21:35 -0500 Subject: [PATCH] Update Command.php --- app/Command.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Command.php b/app/Command.php index aa8cad6..2fd366b 100644 --- a/app/Command.php +++ b/app/Command.php @@ -55,6 +55,12 @@ private function arguments(): string return $string_arguments; } + /** + * If it's running as a phar, look for wp cli in the phar's directory. If it's not running as phar, + * look for wp cli in the builds for of the local development setup. + * + * @return string + */ private function wp_cli_phar_path(): string { if ($phar_path = Phar::running(false)) {