Created
August 9, 2017 14:58
Star
You must be signed in to star a gist
PR #4266
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -v | |
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar -nc -q && mv wp-cli-nightly.phar wp-nightly.phar && chmod +x wp-nightly.phar | |
php -dphar.readonly=0 utils/make-phar.php wp-suggest.phar --version=1.4.0-suggest_help --quiet >/dev/null && chmod +x wp-suggest.phar | |
# ---------------------------------------------------------------------- | |
# Help typo in subcommand of early processed command with WP install | |
# BEFORE: nothing happens. | |
./wp-nightly.phar help db chec --path=/var/www/wptest | |
# AFTER: error/suggestion. | |
./wp-suggest.phar help db chec --path=/var/www/wptest | |
# ---------------------------------------------------------------------- | |
# Help typo in subcommand of early processed command w/o WP install | |
# BEFORE: error re install. | |
./wp-nightly.phar help db chec --path=/nowhere | |
# AFTER: warning re install and error/suggestion. | |
./wp-suggest.phar help db chec --path=/nowhere | |
# ---------------------------------------------------------------------- | |
# Help non-suggestible w/o WP install - error re install. | |
# BEFORE: error re install. | |
./wp-nightly.phar help asdf --path=/nowhere | |
# AFTER: warning re install and error. | |
./wp-suggest.phar help asdf --path=/nowhere | |
# ---------------------------------------------------------------------- | |
# Help typo in command w/o WP install - error re install. | |
# BEFORE: error re install. | |
./wp-nightly.phar help packag --path=/nowhere | |
# AFTER: warning re install and error/suggestion. | |
./wp-suggest.phar help packag --path=/nowhere |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment