Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2533 from wp-cli/1564-cli-info-packages
Add package directory path to `wp cli info`
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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,16 @@ | ||
Feature: Review CLI information | ||
|
||
Scenario: Get the path to the packages directory | ||
Given an empty directory | ||
|
||
When I run `wp cli info --format=json` | ||
Then STDOUT should be JSON containing: | ||
""" | ||
{"wp_cli_packages_dir_path":"/tmp/wp-cli-home/.wp-cli/packages/"} | ||
""" | ||
|
||
When I run `WP_CLI_PACKAGES_DIR=/tmp/packages wp cli info --format=json` | ||
Then STDOUT should be JSON containing: | ||
""" | ||
{"wp_cli_packages_dir_path":"/tmp/packages/"} | ||
""" |
This file contains 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 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