Skip to content

Commit

Permalink
initi
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed May 15, 2024
1 parent 81dc71c commit 52a369a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Init/InitPluginSetupCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,14 @@ public function __invoke(array $args, array $assocArgs)

$newDestionation = Helpers::joinPaths([\dirname($destionation), $textdomain]);

var_dump($newDestionation);
die;

$this->cliLog('--------------------------------------------------', 'C');
$this->cliLog("Changing the setup plugin to the new plugin with name {$textdomain}", 'C');
\rename($destionation, $newDestionation); // phpcs:ignore WordPress.WP.AlternativeFunctions.rename_rename

$this->cliLog('--------------------------------------------------', 'C');
$this->cliLog("Changing the setup plugin main PHP file to the new plugin name {$textdomain}.php", 'C');
\rename(Helpers::joinPaths([$destionation, 'eightshift-boilerplate-plugin.php']), Helpers::joinPaths([$newDestionation, "{$textdomain}.php"])); // phpcs:ignore WordPress.WP.AlternativeFunctions.rename_rename

return;
$this->initMandatoryAfter(
$assocArgs[self::ARG_LIBS_VERSION],
Expand Down

0 comments on commit 52a369a

Please sign in to comment.