This commit is contained in:
Bellord
2026-11-10 08:29:46 +03:00
parent e70a98e7b9
commit 11fee552c5
4 changed files with 42 additions and 9 deletions
+3 -4
View File
@@ -2,14 +2,13 @@
declare(strict_types=1);
use Wt\Core\App\ModuleEntity;
use Wt\Core\App\ModuleCloner;
require './../wt.core/include.php';
require './ModuleCloner.php';
if (!isset($argv[1])) {
echo "Error: Please provide the target module path as the first argument." . PHP_EOL;
echo 'Error: Please provide the target module path as the first argument.' . PHP_EOL;
exit(1);
}
@@ -29,8 +28,8 @@ try {
$cloner = new ModuleCloner($sourceEntity, $targetEntity);
$cloner->clone();
echo "Success: Module cloned successfully." . PHP_EOL;
echo 'Success: Module cloned successfully.' . PHP_EOL;
} catch (Throwable $e) {
echo "Critical Error: " . $e->getMessage() . PHP_EOL;
echo 'Critical Error: ' . $e->getMessage() . PHP_EOL;
exit(1);
}