First pass at constant/variable transformation#1
Conversation
|
💯 so cool! |
|
Added a bunch of thoughts to the README to explain how this all works. |
|
@fjarrett Looks great so far! This will obviously need a robust set of unit tests to make sure we can rely on these changes to work across the board. You've mentioned in the description that you'll take care of tests as well, but feel free to ping me when you need help with anything! |
|
Travis is missing a |
|
Thanks @schlessera! First round of changes pushed based on your feedback. |
|
@fjarrett Looks good. So, instead of this: WPCS requires this: You write the short description as if the sentence would start with the pronoun |
|
Travis is throwing |
|
Seems to have been a temporary issue, a restart got us through successfully. |
|
Merging this as is so it can more easily be used and tested. Any improvements/fixes will be separate PRs. |
|
@schlessera so the thing to do here first is to review (Am reviewing this PR anyway...) Edit: meant to do this and following comment on wp-cli/config-command#44. |
|
As it's just one file and phpunit tests I'm wondering if it wouldn't be best/simplest to merge |
|
One of the original goals was to create a stand-alone library to deal with wp-config.php modifications, as having a WP-CLI command to do it is just one individual use case. There are other instances where such a library can be useful as well. |
|
Hmm, okay, but having all these separate repos is a logistical nightmare to be honest. So this repo is reviewed and just needs to be bundled then? Edit: And released. (Unfortunately I'm very stuck for time today and won't get back to doing WP-CLI stuff until tonight.) |
|
Oh okay I see it's already released. And will be "bundled" with So the only (but big) to-do item is to change Edit: turns out no change needed for |
@danielbachhuber API here is pretty self-explanatory. So far it seems to work pretty well.
Going continue to poke at it and get a test framework in place so we can throw in a ton of scenarios.
Examples:
Examples using raw values:
Variables also work: