fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user