v1.0.0
This commit is contained in:
parent
0fcf42b47b
commit
443dceb8ca
1 changed files with 566609 additions and 230 deletions
21
vendor/eduardovillao/wp-since/bin/wp-since
vendored
Normal file
21
vendor/eduardovillao/wp-since/bin/wp-since
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
|
||||
if (file_exists($file)) {
|
||||
require $file;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
use WP_Since\Runner\PluginCheckCommand;
|
||||
|
||||
if ($argc < 2 || $argv[1] !== 'check') {
|
||||
echo "🛠 Usage: wp-since check /path/to/plugin\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$pluginPath = $argv[2] ?? getcwd();
|
||||
$sinceMapPath = __DIR__ . '/../wp-since.json';
|
||||
|
||||
exit(PluginCheckCommand::run($pluginPath, $sinceMapPath));
|
||||
Loading…
Reference in a new issue