Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/ScaffoldPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,23 @@ public function package( $args, $assoc_args ) {
* }
* ```
*
* **Important:** for the `package-readme` subcommand to work properly, your
* package must be loaded by WP CLI. You may load your package in one of two

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the project's documentation and the WP-CLI brand, WP CLI should be written as WP-CLI.

	 * package must be loaded by WP-CLI. You may load your package in one of two

* ways:
*
* * install the package locally (e.g., from the filesystem via `wp package install /path/to/package`)
* * add a `wp-cli.yml` file in your project directory requiring your package. Here's an example:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a third way would be to manually do --require=path/to/package

*
* ```
* require:
* - your-package.php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* - your-package.php
* - your-package.php

* ```
*
* If your project uses [Composer](https://getcomposer.org)'s autoloader
* and your package is not installed locally, you'll need to generate the
* necessary autoload files by running `composer dump-autoload` in the
* project directory.
*
* You can also customize the rendering of README.md generally with
* composer.json -> 'extra' -> 'readme'. For example, runcommand/hook's
* composer.json includes:
Expand Down