wp-cli / scaffold-command

Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
MIT License
165 stars 87 forks source link

Make methods to scaffold things more accessible #327

Closed benjamingrolleau closed 9 months ago

benjamingrolleau commented 10 months ago

I was working on a custom command to scaffold my own files. I tried to extend Scaffold_Command, but as mentioned in #3957, I have to rewrite some methods because their parent versions are private.

For example : canonicalize_path, check_target_directory.

I think it would be nice to make these methods protected, so we can extend Scaffold_Command easier.

danielbachhuber commented 9 months ago

Thanks for the suggestion! Replied here: https://github.com/wp-cli/scaffold-command/pull/328#issuecomment-1917876048