Skip to content

Commit

Permalink
wp-now: Couple of improvements to CLI output (#342)
Browse files Browse the repository at this point in the history
* wp-now: Use `directory:` instead of `Project directory:`

* Remove `downloaded (true|false)`
  • Loading branch information
danielbachhuber authored May 15, 2023
1 parent 81e854c commit acb1cbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/wp-now/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export async function downloadWordPress(
checkFinalPath: finalFolder,
itemName: `WordPress ${wordPressVersion}`,
});
console.log('downloaded', downloaded);
if (downloaded) {
fs.ensureDirSync(path.dirname(finalFolder));
fs.renameSync(path.join(tempFolder, 'wordpress'), finalFolder);
Expand Down
2 changes: 1 addition & 1 deletion packages/wp-now/src/wp-now.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default async function startWPNow(
php.chdir(documentRoot);
php.writeFile(`${documentRoot}/index.php`, `<?php echo 'Hello wp-now!';`);

console.log(`Project directory: ${options.projectPath}`);
console.log(`directory: ${options.projectPath}`);
console.log(`mode: ${options.mode}`);
console.log(`php: ${options.phpVersion}`);
console.log(`wp: ${options.wordPressVersion}`);
Expand Down

0 comments on commit acb1cbe

Please sign in to comment.