Skip to content

Commit df800e9

Browse files
authored
Merge pull request #44 from wp-cli/explain-available-fields
Explain available fields in results
2 parents f731434 + 8636307 commit df800e9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ $ wp find ./
3232
+--------------------------------------+---------------------+-------+--------+
3333
```
3434

35+
**AVAILABLE FIELDS**
36+
37+
These fields will be displayed by default for each installation:
38+
39+
* version_path - Path to the version.php file.
40+
* version - WordPress version.
41+
* depth - Directory depth at which the installation was found.
42+
* alias - WP-CLI alias, if one is registered.
43+
44+
These fields are optionally available:
45+
46+
* wp_path - Path that can be passed to `--path=<path>` global parameter.
47+
3548
**OPTIONS**
3649

3750
<path>

src/Find_Command.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,19 @@ class Find_Command {
133133
* +--------------------------------------+---------------------+-------+--------+
134134
* ```
135135
*
136+
* ## AVAILABLE FIELDS
137+
*
138+
* These fields will be displayed by default for each installation:
139+
*
140+
* * version_path - Path to the version.php file.
141+
* * version - WordPress version.
142+
* * depth - Directory depth at which the installation was found.
143+
* * alias - WP-CLI alias, if one is registered.
144+
*
145+
* These fields are optionally available:
146+
*
147+
* * wp_path - Path that can be passed to `--path=<path>` global parameter.
148+
*
136149
* ## OPTIONS
137150
*
138151
* <path>

0 commit comments

Comments
 (0)