mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
16 lines
401 B
PHP
Executable File
16 lines
401 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
$autoLoader = __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
if (!file_exists($autoLoader)) {
|
|
fwrite(STDERR, 'Composer autoload.php could not be found');
|
|
exit(1);
|
|
}
|
|
require $autoLoader;
|
|
$config = realpath(__DIR__ . '/../../captainhook.json');
|
|
$app = new CaptainHook\App\Console\Application\Hook();
|
|
$app->setHook('pre-commit');
|
|
$app->setConfigFile($config);
|
|
$app->run();
|
|
|