scaffold-command icon indicating copy to clipboard operation
scaffold-command copied to clipboard

Allow scaffolding without WordPress being present

Open swissspidy opened this issue 7 years ago • 5 comments

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.

swissspidy avatar Jun 20 '18 08:06 swissspidy

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.

schlessera avatar Jun 28 '18 16:06 schlessera

Some context: https://wordpress.slack.com/archives/C02RP4T41/p1529483149000520

swissspidy avatar Jun 28 '18 16:06 swissspidy