Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szepeviktor/wp-cli-readme-command
Validate readme.txt of themes and plugins
https://github.com/szepeviktor/wp-cli-readme-command
readme validator wordpress wp-cli wp-cli-command wp-cli-package
Last synced: 14 days ago
JSON representation
Validate readme.txt of themes and plugins
- Host: GitHub
- URL: https://github.com/szepeviktor/wp-cli-readme-command
- Owner: szepeviktor
- Created: 2020-05-26T17:57:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T06:45:55.000Z (over 4 years ago)
- Last Synced: 2024-11-18T03:11:59.359Z (about 1 month ago)
- Topics: readme, validator, wordpress, wp-cli, wp-cli-command, wp-cli-package
- Language: PHP
- Homepage: https://packagist.org/packages/szepeviktor/wp-cli-readme-command
- Size: 38.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WP-CLI Readme Command
Validate readme.txt of themes and plugins.
### Installation
Require it from your `wp-cli.yml`
```yaml
require:
- vendor/szepeviktor/wp-cli-readme-command/wp-cli-readme-command.php
```### Usage
```bash
wp readme validate wp-content/plugins/coblocks/readme.txt
```### Update classes from WordPress Meta
```bash
# Check out SVN repository
svn co http://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/# Copy classes
cat <<"EOT" | xargs -I % -- cp --parents % /path/to/wp-cli-readme-command/src/
libs/michelf-php-markdown-1.6.0/Michelf/MarkdownExtra.inc.php
libs/michelf-php-markdown-1.6.0/Michelf/MarkdownInterface.php
libs/michelf-php-markdown-1.6.0/Michelf/Markdown.php
libs/michelf-php-markdown-1.6.0/Michelf/MarkdownExtra.php
class-markdown.php
readme/class-parser.php
readme/class-validator.php
EOT# Comment out sanitize_contributors() call
sed -i -e 's#^.*this->sanitize_contributors.*#//' /path/to/wp-cli-readme-command/src/readme/class-parser.php
```