wp-cli / scaffold-package-command

Scaffolds WP-CLI commands with functional tests, full README.md, and more.
MIT License
69 stars 20 forks source link

The scaffold package `--dir=<dir>` argument does not use `realpath` #119

Closed schlessera closed 7 years ago

schlessera commented 7 years ago

When using a path like --dir=~/<package-name> with wp scaffold package, I would expect WP-CLI to resolve this to actually create the folder /home/<user>/<package-name> or any similar platform-specific version of it.

However, WP-CLI actually creates the literal folder '~' and puts everything into that folder.

It should probably use something like realpath() before creating the folders.