Skip to content

Commit 8369088

Browse files
authored
Merge pull request #8 from alleyinteractive/feature/update-command
Bring the command up to date
2 parents 78f4f4f + e8197b3 commit 8369088

28 files changed

+515
-2015
lines changed

.distignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.DS_Store
2+
.git
3+
.gitignore
4+
.gitlab-ci.yml
5+
.editorconfig
6+
.travis.yml
7+
behat.yml
8+
circle.yml
9+
phpcs.xml.dist
10+
phpunit.xml.dist
11+
bin/
12+
features/
13+
utils/
14+
*.zip
15+
*.tar.gz
16+
*.swp
17+
*.txt
18+
*.log

.editorconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# WordPress Coding Standards
55
# https://make.wordpress.org/core/handbook/coding-standards/
66

7+
# From https://github.com/WordPress/wordpress-develop/blob/trunk/.editorconfig with a couple of additions.
8+
79
root = true
810

911
[*]
@@ -12,11 +14,13 @@ end_of_line = lf
1214
insert_final_newline = true
1315
trim_trailing_whitespace = true
1416
indent_style = tab
15-
indent_size = 4
1617

17-
[{.jshintrc,*.json,*.yml}]
18+
[{*.yml,*.feature,.jshintrc,*.json}]
1819
indent_style = space
1920
indent_size = 2
2021

22+
[*.md]
23+
trim_trailing_whitespace = false
24+
2125
[{*.txt,wp-config-sample.php}]
2226
end_of_line = crlf

.github/ISSUE_TEMPLATE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!--
2+
3+
Thanks for creating a new issue!
4+
5+
Found a bug or want to suggest an enhancement? Before completing your issue, please review our best practices: https://make.wordpress.org/cli/handbook/bug-reports/
6+
7+
Need help with something? GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
8+
9+
You can safely delete this comment.
10+
11+
-->

.github/PULL_REQUEST_TEMPLATE

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!--
2+
3+
Thanks for submitting a pull request!
4+
5+
Please review our contributing guidelines if you haven't recently: https://make.wordpress.org/cli/handbook/contributing/#creating-a-pull-request
6+
7+
Here's an overview to our process:
8+
9+
1. One of the project committers will soon provide a code review: https://make.wordpress.org/cli/handbook/code-review/
10+
2. You are expected to address the code review comments in a timely manner (if we don't hear from you in two weeks, we'll consider your pull request abandoned).
11+
3. Please make sure to include functional tests for your changes.
12+
4. The reviewing committer will merge your pull request as soon as it passes code review (and provided it fits within the scope of the project).
13+
14+
You can safely delete this comment.
15+
16+
-->

.github/settings.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Used by Probot Settings: https://probot.github.io/apps/settings/
2+
repository:
3+
labels:
4+
- name: bug
5+
color: fc2929
6+
- name: scope:documentation
7+
color: 0e8a16
8+
- name: scope:testing
9+
color: 5319e7
10+
- name: good-first-issue
11+
color: eb6420
12+
- name: help-wanted
13+
color: 159818
14+
- name: maybelater
15+
color: c2e0c6
16+
- name: state:unconfirmed
17+
color: bfe5bf
18+
- name: state:unsupported
19+
color: bfe5bf
20+
- name: wontfix
21+
color: c2e0c6
22+
- name: command:hello-world
23+
color: c5def5

.github/workflows/testing.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Testing
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
workflow_call:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
behat:
17+
strategy:
18+
matrix:
19+
php-version: ['8.3', '8.2', '7.4']
20+
runs-on: ubuntu-latest
21+
services:
22+
mysql:
23+
image: mysql:8
24+
env:
25+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
26+
MYSQL_DATABASE: wp_cli_test
27+
MYSQL_USER: wp_cli_test
28+
MYSQL_PASSWORD: password1
29+
MYSQL_HOST: 127.0.0.1
30+
ports:
31+
- 3306
32+
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
33+
steps:
34+
- name: Check out source code
35+
uses: actions/checkout@v4
36+
37+
- name: Setup PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: ${{ matrix.php-version }}
41+
tools: composer
42+
43+
- name: Install composer packages
44+
run: composer install
45+
46+
- name: Run Behat
47+
run: composer behat
48+
env:
49+
WP_CLI_TEST_DBUSER: wp_cli_test
50+
WP_CLI_TEST_DBPASS: password1
51+
WP_CLI_TEST_DBNAME: wp_cli_test
52+
WP_CLI_TEST_DBHOST: 127.0.0.1:${{ job.services.mysql.ports[3306] }}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
.DS_Store
2+
wp-cli.local.yml
23
node_modules/
34
vendor/
5+
*.zip
6+
*.tar.gz
7+
*.swp
8+
*.txt
9+
*.log
10+
composer.lock
11+
phpunit.xml
12+
phpcs.xml
13+
.phpcs.xml

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Contributing
2+
============
3+
4+
We appreciate you taking the initiative to contribute to this project.
5+
6+
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
7+
8+
For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.

README.md

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ View PHPDoc of any class, method, property, or function.
55

66
[![Build Status](https://travis-ci.org/alleyinteractive/wp-doc-command.svg?branch=master)](https://travis-ci.org/alleyinteractive/wp-doc-command)
77

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

1010
## Using
1111

12-
1312
~~~
1413
wp doc <function-or-class> [<method-or-property>] [--raw]
1514
~~~
1615

1716
**OPTIONS**
1817

19-
[--raw]
20-
Return the raw docblock instead of formatting it
18+
[--raw]
19+
Return the raw docblock instead of formatting it.
2120

2221
**EXAMPLES**
2322

@@ -28,15 +27,47 @@ wp doc <function-or-class> [<method-or-property>] [--raw]
2827
wp doc WP_Query parse_query
2928

3029

31-
3230
## Installing
3331

34-
Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with `wp cli update`.
32+
Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`.
33+
34+
Once you've done so, you can install the latest stable version of this package with:
35+
36+
```bash
37+
wp package install alleyinteractive/wp-doc-command:@stable
38+
```
39+
40+
To install the latest development version of this package, use the following command instead:
3541

36-
Once you've done so, you can install this package with `wp package install alleyinteractive/wp-doc-command`
42+
```bash
43+
wp package install alleyinteractive/wp-doc-command:dev-master
44+
```
3745

3846
## Contributing
3947

40-
Code and ideas are more than welcome.
48+
We appreciate you taking the initiative to contribute to this project.
49+
50+
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
51+
52+
For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.
53+
54+
### Reporting a bug
55+
56+
Think you’ve found a bug? We’d love for you to help us get it fixed.
57+
58+
Before you create a new issue, you should [search existing issues](https://github.com/alleyinteractive/wp-doc-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.
59+
60+
Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/alleyinteractive/wp-doc-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).
61+
62+
### Creating a pull request
63+
64+
Want to contribute a new feature? Please first [open a new issue](https://github.com/alleyinteractive/wp-doc-command/issues/new) to discuss whether the feature is a good fit for the project.
65+
66+
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.
67+
68+
## Support
69+
70+
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
71+
4172

42-
Please [open an issue](https://github.com/alleyinteractive/wp-doc-command/issues) with questions, feedback, and violent dissent. Pull requests are expected to include test coverage.
73+
*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*

0 commit comments

Comments
 (0)