scaffold-command
scaffold-command copied to clipboard
Scaffold a WP-CLI command for use in a plugin or theme
A command to scaffold the PHP code for a WP-CLI command would be great.
I currently start writing a command by copy-pasting an existing one, but this can get out of date with the latest changes to things such as documentation formatting.
Just to confirm, you're aware of https://github.com/wp-cli/scaffold-package-command/ ?
I am now!
I suppose there's something to be said about a wp scaffold command
that gives you a raw command though.
I think I'd seen that previously but had forgotten about it. Let's close this then.
We can make this specific to scaffolding a command for a plugin or theme.