WIP
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
vendor/
|
||||
composer.lock
|
||||
.php.result.cache
|
||||
.php.result.cache
|
||||
.phpunit.result.cache
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{"version":1,"defects":{"ofc\\tests\\UtilTest::weCanSlugifyAString":3},"times":{"ofc\\tests\\UtilTest::weCanSlugifyAString":0.002}}
|
||||
37
vendor/open-function-computers-llc/rad-theme-engine/bin/getIcon
vendored
Executable file
37
vendor/open-function-computers-llc/rad-theme-engine/bin/getIcon
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
$autoloadPaths = [
|
||||
__DIR__ . '/../../../autoload.php', // typical path when symlinked in vendor/bin
|
||||
__DIR__ . '/../vendor/autoload.php', // fallback if run directly from source
|
||||
];
|
||||
|
||||
$found = false;
|
||||
foreach ($autoloadPaths as $path) {
|
||||
if (file_exists($path)) {
|
||||
require $path;
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$found) {
|
||||
fwrite(STDERR, "Could not locate Composer autoloader.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
use ofc\IconGetter;
|
||||
|
||||
if ($argc !== 2) {
|
||||
fwrite(STDERR, "Usage: getIcon <icon-name>\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$icon = trim(strtolower($argv[1]));
|
||||
|
||||
try {
|
||||
IconGetter::get($icon);
|
||||
} catch (Exception $e) {
|
||||
fwrite(STDERR, "Error: ".$e->getMessage().PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
@@ -10,7 +10,11 @@
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": ["wordpress", "handlebars", "theme"],
|
||||
"keywords": [
|
||||
"wordpress",
|
||||
"handlebars",
|
||||
"theme"
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -19,5 +23,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"post-create-project-cmd": "ofc\\RadThemeEngine::setup"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/getIcon"
|
||||
]
|
||||
}
|
||||
|
||||
2115
vendor/open-function-computers-llc/rad-theme-engine/src/IconGetter.php
vendored
Normal file
2115
vendor/open-function-computers-llc/rad-theme-engine/src/IconGetter.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user