Skip to content

Instantly share code, notes, and snippets.

@gitlost
Created August 9, 2017 14:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gitlost/e895eb50068aff4ca36a61de3f74a2e7 to your computer and use it in GitHub Desktop.
PR #4266
#!/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