blob: fdcbb5c2ea5dcc11e43d8d070306c760853c49b8 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001#!/usr/bin/env php
2<?php
3
4$dir = __DIR__.'/..';
5
6if (!file_exists($dir.'/autoload.php')) {
7 $dir = __DIR__.'/../vendor';
8}
9
10if (!file_exists($dir.'/autoload.php')) {
11 $dir = __DIR__.'/../../..';
12}
13
14if (!file_exists($dir.'/autoload.php')) {
15 echo 'Autoload not found.';
16 exit(1);
17}
18
19require $dir.'/autoload.php';
20
21exit((new \Carbon\Cli\Invoker())(...$argv) ? 0 : 1);