-
Notifications
You must be signed in to change notification settings - Fork 37
Add --config-file
argument to process custom configuration files
#104
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
Merged
schlessera
merged 15 commits into
wp-cli:master
from
pmbaldha:20200312_PB_--config-file_param_introduced
Jan 6, 2022
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d118a0b
Add --config-file argument
pmbaldha 3cb955d
make proper wp-config file name in the output success msg
pmbaldha 0ebac3f
--config-file param config-create behat tests added
pmbaldha 8b037d7
core config --config file parma behat test and output not entry messa…
pmbaldha bf1c9f8
behat tests and not exists of --config-file path msg displayed
pmbaldha 10d55a3
add param --config-file to the onfig set behat feature
pmbaldha a4cb22a
Corrected --config-file behat tests
pmbaldha 1fe8d30
MAke more generalize get_config_path() & imporove typos
pmbaldha 7839fda
PHPCBF error resolved
pmbaldha 0ca9a46
phpcbf part 2
pmbaldha 79dca58
config file already exist error when trying to create it
pmbaldha a108358
typo blank line corrected in behat test
pmbaldha 0770824
Correct behat feature typo
pmbaldha 30dd6f7
Fix aborted message in tests
schlessera b3f05ca
Adapt fallback salts for WPCS
schlessera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Feature: Edit a wp-config file | ||
|
||
Scenario: Edit a wp-config.php file | ||
Given a WP install | ||
|
||
When I try `EDITOR='ex -i NONE -c q!' wp config edit;` | ||
Then STDERR should contain: | ||
""" | ||
Warning: No changes made to wp-config.php, aborted. | ||
""" | ||
And the return code should be 0 | ||
|
||
@custom-config-file | ||
Scenario: Edit a wp-custom-config.php file | ||
Given an empty directory | ||
And WP files | ||
|
||
When I run `wp core config {CORE_CONFIG_SETTINGS} --config-file='wp-custom-config.php'` | ||
Then STDOUT should contain: | ||
""" | ||
Generated 'wp-custom-config.php' file. | ||
""" | ||
|
||
When I try `EDITOR='ex -i NONE -c q!' wp config edit --config-file=wp-custom-config.php` | ||
Then STDERR should contain: | ||
""" | ||
No changes made to wp-custom-config.php, aborted. | ||
""" | ||
And the return code should be 0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.