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

Scaffold a WP-CLI command for use in a plugin or theme

Open johnbillion opened this issue 6 years ago • 5 comments

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.

johnbillion avatar Nov 22 '17 14:11 johnbillion

Just to confirm, you're aware of https://github.com/wp-cli/scaffold-package-command/ ?

danielbachhuber avatar Nov 22 '17 14:11 danielbachhuber

I am now!

johnbillion avatar Nov 22 '17 14:11 johnbillion

I suppose there's something to be said about a wp scaffold command that gives you a raw command though.

danielbachhuber avatar Nov 22 '17 14:11 danielbachhuber

I think I'd seen that previously but had forgotten about it. Let's close this then.

johnbillion avatar Nov 22 '17 14:11 johnbillion

We can make this specific to scaffolding a command for a plugin or theme.

danielbachhuber avatar Dec 18 '17 15:12 danielbachhuber