Skip to content

Commit 257b536

Browse files
authored
Merge pull request #151 from ernilambar/150-list-format-count
2 parents 7bf7b06 + 5fd4ae2 commit 257b536

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

features/language-core.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ Feature: Manage translation files for a WordPress install
7777
| ar | Arabic | uninstalled |
7878
| en_GB | English (UK) | installed |
7979

80+
When I run `wp language core list --status=installed --format=count`
81+
Then STDOUT should be:
82+
"""
83+
4
84+
"""
85+
8086
When I run `wp site switch-language en_GB`
8187
Then STDOUT should be:
8288
"""

features/language-plugin.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ Feature: Manage translation files for a WordPress install
9696
| en_US | English (United States) | none |
9797
| en_GB | English (UK) | none |
9898

99+
When I run `wp language plugin list hello-dolly --status=installed --format=count`
100+
Then STDOUT should be:
101+
"""
102+
3
103+
"""
104+
99105
When I run `wp language plugin update --all`
100106
Then STDOUT should contain:
101107
"""

features/language-theme.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ Feature: Manage translation files for a WordPress install
9595
| en_GB | English (UK) | none |
9696
| en_US | English (United States) | none |
9797

98+
When I run `wp language theme list twentyten --status=installed --format=count`
99+
Then STDOUT should be:
100+
"""
101+
3
102+
"""
103+
98104
When I run `wp language theme update --all`
99105
Then STDOUT should contain:
100106
"""

src/Core_Language_Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Core_Language_Command extends WP_CLI\CommandWithTranslation {
6767
* - table
6868
* - csv
6969
* - json
70+
* - count
7071
* ---
7172
*
7273
* ## AVAILABLE FIELDS

src/Plugin_Language_Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class Plugin_Language_Command extends WP_CLI\CommandWithTranslation {
7676
* - table
7777
* - csv
7878
* - json
79+
* - count
7980
* ---
8081
*
8182
* ## AVAILABLE FIELDS

src/Theme_Language_Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class Theme_Language_Command extends WP_CLI\CommandWithTranslation {
7676
* - table
7777
* - csv
7878
* - json
79+
* - count
7980
* ---
8081
*
8182
* ## AVAILABLE FIELDS

0 commit comments

Comments
 (0)