scaffold-command
scaffold-command copied to clipboard
Allow scaffolding without WordPress being present
I don't see why a command like wp scaffold plugin-tests should require WordPress to be loaded. Using WP_Fileystem to copy/create a bunch of files seems unnecessary in this case IMO.
The reason why commands like this use WP_Filesystem is because we want to adhere to all permissions/security settings on the server that were configured for WordPress. Otherwise, we might create files with too lax permissions that are directly accessible from the web.
Some context: https://wordpress.slack.com/archives/C02RP4T41/p1529483149000520