Skip to content

Commit

Permalink
Update runway
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n authored May 9, 2024
1 parent 06e1fa2 commit 59473ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runway
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(file_exists($cwd.'/.runway-config.json') === false) {

$config = json_decode(file_get_contents($cwd.'/.runway-config.json'), true);

$consoleApp = new Ahc\Cli\Application('runway', '0.2.2');
$consoleApp = new Ahc\Cli\Application('runway', '0.2.3');

$cwd = getcwd();
$paths = [
Expand All @@ -27,6 +27,8 @@ $paths = [
__DIR__.'/../../**/flight/commands/*.php',
$cwd.'/src/commands/*.php',
$cwd.'/flight/commands/*.php',
$cwd.'/app/commands/*.php',
$cwd.'/commands/*.php',

// Pull all commands from other flightphp repos with hyphens
__DIR__.'/../flightphp-**/**/src/commands/*.php',
Expand Down Expand Up @@ -58,4 +60,4 @@ foreach($paths as $path) {
$consoleApp->add(new $command($config));
}
}
$consoleApp->handle($_SERVER['argv']);
$consoleApp->handle($_SERVER['argv']);

0 comments on commit 59473ea

Please sign in to comment.