Skip to content

Commit fc7d209

Browse files
author
Paul M. Jones
committed
rename pdsskeleton to pds-skeleton
1 parent 20adda9 commit fc7d209

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

bin/pds-skeleton

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env php
2+
<?php
3+
$autoload = null;
4+
5+
$autoloadFiles = [
6+
__DIR__ . '/../vendor/autoload.php',
7+
__DIR__ . '/../../../autoload.php'
8+
];
9+
10+
foreach ($autoloadFiles as $autoloadFile) {
11+
if (file_exists($autoloadFile)) {
12+
$autoload = $autoloadFile;
13+
break;
14+
}
15+
}
16+
17+
if (! $autoload) {
18+
echo "Autoload file not found; try 'composer install' first." . PHP_EOL;
19+
exit(1);
20+
}
21+
22+
require $autoload;
23+
24+
$console = new \Pds\Skeleton\Console();
25+
$console->execute($argv);

bin/pdsskeleton

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)