We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508d06a commit 3e7cb37Copy full SHA for 3e7cb37
bin/leaf
@@ -33,10 +33,10 @@ $app->register(Leaf\Console\ViewInstallCommand::class);
33
$app->register(Leaf\Console\DeployCommand::class);
34
35
$app->on('command.notFound', function ($event) use ($app) {
36
- $command = $event->getCommandName();
+ $data = array_slice($event->getCommandArgv(), 1);
37
38
- if (\Leaf\FS\File::exists(getcwd() . "/leaf")) {
39
- $exitCode = (int) sprout()->run("php leaf $command", null);
+ if (\Leaf\FS\File::exists(getcwd() . '/leaf')) {
+ $exitCode = (int) sprout()->run('php leaf ' . implode(' ', $data), null);
40
$event->setExitCode($exitCode);
41
$event->stopPropagation();
42
}
0 commit comments