wp-cli / scaffold-command

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

Better way to execute the install command #252

Closed zaherg closed 2 years ago

zaherg commented 4 years ago

This will change the command from:

"usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version] [skip-database-creation]"

to

"Usage: $0 -d <db-name> -u <db-user> -p <db-pass> -h [db-host] -v [wp-version] -s [skip-database-creation]";

Which will make it easier/simpler to understand and even mix the parameters without any problems, so they can run it like:

./templates/install-wp-tests.sh -d db_name -u my_user -p my_super_secret_password
schlessera commented 4 years ago

While I do like this new syntax, I'll have to think about the ramifications of such a breaking change before going ahead with it.

zaherg commented 4 years ago

No worries, if there is anything I can help with let me know

danielbachhuber commented 2 years ago

Proceeding with https://github.com/wp-cli/wp-cli/issues/5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/454c165bbc061d094ecc6bf3ec4ec728 in case this PR is auto-closed or broken in some way.