diff --git a/change_log.txt b/change_log.txt index 000f3af..c765b30 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ += 1.5 = +- Updated the plugin to allow its usage as a WP-CLI package. + = 1.4 = - Fixed an issue where the version comparison performed when using `wp gf update` with an add-on slug uses the Gravity Forms version number. - Added support for using `--version=beta` with the `wp gf install` and `wp gf update` commands. Add-On beta releases are not currently supported. diff --git a/class-gf-cli.php b/class-gf-cli.php index abacb33..7845ecd 100644 --- a/class-gf-cli.php +++ b/class-gf-cli.php @@ -1,6 +1,6 @@ array( 'GF_CLI_Bootstrap', 'before_invoke' ) ); @@ -101,6 +99,8 @@ public static function before_invoke() { } } +GF_CLI_Bootstrap::load_cli(); + /** * Returns an instance of the GF_CLI class * diff --git a/composer.json b/composer.json index 24b858e..1a17084 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "gravityforms/gravityformscli", "description": "A set of WP-CLI commands to manage Gravity Forms.", - "type": "wordpress-plugin", + "type": "wp-cli-package", "homepage": "https://github.com/gravityforms/gravityformscli", "support": { "issues": "https://gravityforms.com" diff --git a/includes/class-gf-cli-entry-notification.php b/includes/class-gf-cli-entry-notification.php index 6474189..c92f7be 100644 --- a/includes/class-gf-cli-entry-notification.php +++ b/includes/class-gf-cli-entry-notification.php @@ -1,6 +1,6 @@