From e1ebe539d025e0a4dba106874700b65f65496dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Wed, 15 May 2024 00:10:17 +0200 Subject: [PATCH] initi --- src/Cli/AbstractCli.php | 8 ++++---- src/Init/InitThemeSetupCli.php | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Cli/AbstractCli.php b/src/Cli/AbstractCli.php index ce5756f79..8ae261a17 100644 --- a/src/Cli/AbstractCli.php +++ b/src/Cli/AbstractCli.php @@ -631,10 +631,10 @@ public function cleanUpInitialBoilerplate(string $destination): void { $this->cliLog('--------------------------------------------------', 'C'); $this->cliLog('Removing initial boilerplate setup files', 'C'); - WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm -rf .github\");' --quiet"); - WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm CODE_OF_CONDUCT.md\");' --quiet"); - WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm CHANGELOG.md\");' --quiet"); - WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm LICENSE.md\");' --quiet"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm -rf .github\");'"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm CODE_OF_CONDUCT.md\");'"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm CHANGELOG.md\");'"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm LICENSE.md\");'"); } /** diff --git a/src/Init/InitThemeSetupCli.php b/src/Init/InitThemeSetupCli.php index 574785f1a..189ec91f1 100644 --- a/src/Init/InitThemeSetupCli.php +++ b/src/Init/InitThemeSetupCli.php @@ -149,8 +149,13 @@ public function __invoke(array $args, array $assocArgs) $this->cliLog("Changing the setup theme to the new theme name", 'C'); \rename($destionation, $newDestionation); // phpcs:ignore WordPress.WP.AlternativeFunctions.rename_rename + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm -rf .github\");'"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm CODE_OF_CONDUCT.md\");'"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm CHANGELOG.md\");'"); + WP_CLI::runcommand("eval 'shell_exec(\"cd {$destination} && rm LICENSE.md\");'"); + $this->initMandatoryAfter($assocArgs[self::ARG_LIBS_VERSION], $newDestionation); - $this->cleanUpInitialBoilerplate($newDestionation); + // $this->cleanUpInitialBoilerplate($newDestionation); $this->cliLog('--------------------------------------------------', 'C'); $this->cliLog("Activating new theme", 'C');