From 84b684735d2f79d2b2e75190609fac9d0ed4655e Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Fri, 27 Jun 2025 11:13:21 -0700 Subject: [PATCH] latest bump for RAD --- composer.lock | 12 +-- vendor/composer/installed.json | 14 +-- vendor/composer/installed.php | 10 +-- .../rad-theme-engine/bin/rad | 1 + .../src/Commands/GetIconCommand.php | 7 +- .../src/Commands/MakeActionCommand.php | 85 +++++++++++++++++++ 6 files changed, 107 insertions(+), 22 deletions(-) create mode 100644 vendor/open-function-computers-llc/rad-theme-engine/src/Commands/MakeActionCommand.php diff --git a/composer.lock b/composer.lock index b6029e4..7f1f6f4 100644 --- a/composer.lock +++ b/composer.lock @@ -57,16 +57,16 @@ }, { "name": "open-function-computers-llc/rad-theme-engine", - "version": "v1.0.38", + "version": "v1.0.39", "source": { "type": "git", "url": "https://github.com/open-function-computers-llc/rad-theme-engine.git", - "reference": "90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4" + "reference": "587358e1af452967fc7a664c10354859b35c8de0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4", - "reference": "90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4", + "url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/587358e1af452967fc7a664c10354859b35c8de0", + "reference": "587358e1af452967fc7a664c10354859b35c8de0", "shasum": "" }, "require": { @@ -98,9 +98,9 @@ ], "support": { "issues": "https://github.com/open-function-computers-llc/rad-theme-engine/issues", - "source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.38" + "source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.39" }, - "time": "2025-06-13T18:23:21+00:00" + "time": "2025-06-27T18:09:19+00:00" }, { "name": "salesforce/handlebars-php", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 1a0af61..8c80df8 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -54,17 +54,17 @@ }, { "name": "open-function-computers-llc/rad-theme-engine", - "version": "v1.0.38", - "version_normalized": "1.0.38.0", + "version": "v1.0.39", + "version_normalized": "1.0.39.0", "source": { "type": "git", "url": "https://github.com/open-function-computers-llc/rad-theme-engine.git", - "reference": "90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4" + "reference": "587358e1af452967fc7a664c10354859b35c8de0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4", - "reference": "90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4", + "url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/587358e1af452967fc7a664c10354859b35c8de0", + "reference": "587358e1af452967fc7a664c10354859b35c8de0", "shasum": "" }, "require": { @@ -75,7 +75,7 @@ "require-dev": { "phpunit/phpunit": "^9.5" }, - "time": "2025-06-13T18:23:21+00:00", + "time": "2025-06-27T18:09:19+00:00", "bin": [ "bin/rad" ], @@ -98,7 +98,7 @@ ], "support": { "issues": "https://github.com/open-function-computers-llc/rad-theme-engine/issues", - "source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.38" + "source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.39" }, "install-path": "../open-function-computers-llc/rad-theme-engine" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 52dca02..c60620a 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'open-function-computers-llc/wp-theme', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'edcad561a551ed7689bc2ae7fb39e1cde81aba2e', + 'reference' => '8271fb1d62dd4e4d76646ca581c1be4b236c781d', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -20,9 +20,9 @@ 'dev_requirement' => false, ), 'open-function-computers-llc/rad-theme-engine' => array( - 'pretty_version' => 'v1.0.38', - 'version' => '1.0.38.0', - 'reference' => '90a351370bbd5a92a2c68c226a2c0cf3f97ce8f4', + 'pretty_version' => 'v1.0.39', + 'version' => '1.0.39.0', + 'reference' => '587358e1af452967fc7a664c10354859b35c8de0', 'type' => 'library', 'install_path' => __DIR__ . '/../open-function-computers-llc/rad-theme-engine', 'aliases' => array(), @@ -31,7 +31,7 @@ 'open-function-computers-llc/wp-theme' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'edcad561a551ed7689bc2ae7fb39e1cde81aba2e', + 'reference' => '8271fb1d62dd4e4d76646ca581c1be4b236c781d', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/vendor/open-function-computers-llc/rad-theme-engine/bin/rad b/vendor/open-function-computers-llc/rad-theme-engine/bin/rad index a552b48..f40d1f4 100755 --- a/vendor/open-function-computers-llc/rad-theme-engine/bin/rad +++ b/vendor/open-function-computers-llc/rad-theme-engine/bin/rad @@ -30,6 +30,7 @@ $arguments = array_slice($argv, 2); $availableCommands = [ "get-icon" => \ofc\Commands\GetIconCommand::class, + 'make:action' => \ofc\Commands\MakeActionCommand::class, // TODO: additional commands go below // "swap-library" => \ofc\Commands\LibrarySwap::class, diff --git a/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/GetIconCommand.php b/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/GetIconCommand.php index 1443a8c..f22fe90 100644 --- a/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/GetIconCommand.php +++ b/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/GetIconCommand.php @@ -8,10 +8,9 @@ class GetIconCommand { public static function run(array $args): void { - if (count($args) !== 1) { - fwrite(STDERR, "Usage: rad get-icon \n"); - var_dump($args); - exit(1); + if (!isset($args[0]) || $args[0] === '--help') { + echo self::getHelp().PHP_EOL; + exit(!isset($args[0]) || $args[0] === '--help'? 0 : 1); } $icon = trim(strtolower($args[0])); diff --git a/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/MakeActionCommand.php b/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/MakeActionCommand.php new file mode 100644 index 0000000..0f9df2c --- /dev/null +++ b/vendor/open-function-computers-llc/rad-theme-engine/src/Commands/MakeActionCommand.php @@ -0,0 +1,85 @@ + + +Description: + Creates a new Action class inside your current WordPress theme: + {theme}/actions/Action.php + TODO: link to the docs page. + +Example: + rad make:action DoThisOnInit +HELP; + } +}