Skip to content

Commit

Permalink
Update Command.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjmead committed Nov 4, 2024
1 parent 14c1e23 commit 42fbdb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 42fbdb6

Please sign in to comment.