Created
June 30, 2020 05:42
-
-
Save shin1x1/01d6550c80ce369c9a14d03d7282be49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
use Koriym\Spaceman\Convert; | |
require __DIR__ . '/vendor/autoload.php'; | |
if ($argc < 3) { | |
echo "Usage: spaceman NAMESPACE DIR", PHP_EOL; | |
exit(1); | |
} | |
$packageName = $argv[1]; | |
$sourcePath = $argv[2]; | |
$sourceAbsolutePath = realpath($sourcePath[0] === '/' ? $sourcePath : __DIR__ . '/' . $sourcePath); | |
(new Convert($packageName))($sourceAbsolutePath); |
Author
shin1x1
commented
Jun 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment