Skip to content

Commit 6bfaf43

Browse files
authored
Merge branch 'main' into copilot/add-wp-db-users-command
2 parents f291b1e + 33c4c58 commit 6bfaf43

File tree

5 files changed

+43
-49
lines changed

5 files changed

+43
-49
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636

3737
- name: Install Composer dependencies & cache dependencies
3838
if: steps.check_composer_file.outputs.files_exists == 'true'
39-
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v3
39+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4
4040
env:
4141
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
42-
with:
43-
# Bust the cache at least once a month - output format: YYYY-MM.
44-
custom-cache-suffix: $(date -u "+%Y-%m")

README.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ wp-cli/db-command
33

44
Performs basic database operations using credentials stored in wp-config.php.
55

6-
[![Testing](https://github.com/wp-cli/db-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/db-command/actions/workflows/testing.yml)
6+
[![Testing](https://github.com/wp-cli/db-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/db-command/actions/workflows/testing.yml) [![Code Coverage](https://codecov.io/gh/wp-cli/db-command/branch/main/graph/badge.svg)](https://codecov.io/gh/wp-cli/db-command/tree/main)
77

88
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)
99

@@ -648,39 +648,39 @@ Defaults to searching through all tables registered to $wpdb. On multisite, this
648648
- count
649649
---
650650

651-
The percent color codes available are:
652-
653-
| Code | Color
654-
| ---- | -----
655-
| %y | Yellow (dark) (mustard)
656-
| %g | Green (dark)
657-
| %b | Blue (dark)
658-
| %r | Red (dark)
659-
| %m | Magenta (dark)
660-
| %c | Cyan (dark)
661-
| %w | White (dark) (light gray)
662-
| %k | Black
663-
| %Y | Yellow (bright)
664-
| %G | Green (bright)
665-
| %B | Blue (bright)
666-
| %R | Red (bright)
667-
| %M | Magenta (bright)
668-
| %C | Cyan (bright)
669-
| %W | White
670-
| %K | Black (bright) (dark gray)
671-
| %3 | Yellow background (dark) (mustard)
672-
| %2 | Green background (dark)
673-
| %4 | Blue background (dark)
674-
| %1 | Red background (dark)
675-
| %5 | Magenta background (dark)
676-
| %6 | Cyan background (dark)
677-
| %7 | White background (dark) (light gray)
678-
| %0 | Black background
679-
| %8 | Reverse
680-
| %U | Underline
681-
| %F | Blink (unlikely to work)
682-
683-
They can be concatenated. For instance, the default match color of black on a mustard (dark yellow) background `%3%k` can be made black on a bright yellow background with `%Y%0%8`.
651+
The percent color codes available are:
652+
653+
| Code | Color
654+
| ---- | -----
655+
| %y | Yellow (dark) (mustard)
656+
| %g | Green (dark)
657+
| %b | Blue (dark)
658+
| %r | Red (dark)
659+
| %m | Magenta (dark)
660+
| %c | Cyan (dark)
661+
| %w | White (dark) (light gray)
662+
| %k | Black
663+
| %Y | Yellow (bright)
664+
| %G | Green (bright)
665+
| %B | Blue (bright)
666+
| %R | Red (bright)
667+
| %M | Magenta (bright)
668+
| %C | Cyan (bright)
669+
| %W | White
670+
| %K | Black (bright) (dark gray)
671+
| %3 | Yellow background (dark) (mustard)
672+
| %2 | Green background (dark)
673+
| %4 | Blue background (dark)
674+
| %1 | Red background (dark)
675+
| %5 | Magenta background (dark)
676+
| %6 | Cyan background (dark)
677+
| %7 | White background (dark) (light gray)
678+
| %0 | Black background
679+
| %8 | Reverse
680+
| %U | Underline
681+
| %F | Blink (unlikely to work)
682+
683+
They can be concatenated. For instance, the default match color of black on a mustard (dark yellow) background `%3%k` can be made black on a bright yellow background with `%Y%0%8`.
684684

685685
**AVAILABLE FIELDS**
686686

@@ -1020,6 +1020,10 @@ Want to contribute a new feature? Please first [open a new issue](https://github
10201020

10211021
Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See "[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)" for details specific to working on this package locally.
10221022

1023+
### License
1024+
1025+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
1026+
10231027
## Support
10241028

10251029
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support

codecov.yml

Whitespace-only changes.

features/db-size.feature

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,19 +213,12 @@ Feature: Display database size
213213
Given a WP install
214214

215215
When I run `wp db size --size_format=b --format=csv`
216-
Then STDOUT should contain:
217-
"""
218-
Name,Size
219-
.ht.sqlite,"
220-
"""
216+
Then STDOUT should match /Name,Size\n\.ht\.sqlite(\.php)?,"/
221217
222218
But STDOUT should not be a number
223219
224220
When I run `wp db size --size_format=b --format=json`
225-
Then STDOUT should contain:
226-
"""
227-
[{"Name":".ht.sqlite","Size":"
228-
"""
221+
Then STDOUT should match /^\[\{"Name":"\.ht\.sqlite(\.php)?","Size":"/
229222

230223
But STDOUT should not be a number
231224

phpcs.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<!--
66
#############################################################################
77
COMMAND LINE ARGUMENTS
8-
For help understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
9-
For help using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage
8+
For help understanding this file: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
9+
For help using PHPCS: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Usage
1010
#############################################################################
1111
-->
1212

0 commit comments

Comments
 (0)