forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpdocs-md
executable file
·28 lines (22 loc) · 927 Bytes
/
phpdocs-md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env php
<?php
$autoLoadPaths = array(__DIR__.'/vendor/autoload.php', __DIR__.'/../vendor/autoload.php', __DIR__.'/../vendor/jarednova/markdowndocs/vendor/autoload.php', getcwd().'/vendor/autoload.php');
foreach($autoLoadPaths as $autoloader) {
if( file_exists($autoloader) ) {
require $autoloader;
break;
}
}
require_once(__DIR__."/vendor/jarednova/markdowndocs/src/PHPDocsMD/CodeEntity.php");
require_once(__DIR__."/vendor/jarednova/markdowndocs/src/PHPDocsMD/ReflectorInterface.php");
require_once(__DIR__."/vendor/jarednova/markdowndocs/src/PHPDocsMD/Console/CLI.php");
require_once(__DIR__."/vendor/jarednova/markdowndocs/src/PHPDocsMD/Console/PHPDocsMDCommand.php");
$str = __DIR__."/vendor/jarednova/markdowndocs/src/PHPDocsMD/*.php";
foreach (glob($str) as $filename)
{
require_once $filename;
}
use PHPDocsMD\Console\CLI;
$cli = new CLI();
$code = $cli->run();
exit($code);