-
Notifications
You must be signed in to change notification settings - Fork 38
Add wp config add and wp config update commands
#206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: swissspidy <[email protected]>
wp config add and wp config update commands
features/config-update.feature
Outdated
| When I run `wp config update WP_DEBUG true --raw` | ||
| Then STDOUT should be: | ||
| """ | ||
| Success: Added the constant 'WP_DEBUG' to the 'wp-config.php' file with the raw value 'true'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Since WP_DEBUG is already set by default, need to change this assertion to Success: Updated the constant 'WP_DEBUG' in the 'wp-config.php' file with the raw value 'true'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed assertion to expect "Updated" instead of "Added" in commit dd07f44.
Co-authored-by: swissspidy <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
config addcommand that adds a constant/variable (fails if it already exists)config updatecommand that updates or adds a constant/variable (upsert behavior)config setcommand for backward compatibilityconfig addcommandconfig updatecommandOriginal prompt
config set --addtoconfig add#46💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.