From 5aaf4bf1d05b92bc4532aba803271e71de6c093c Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Mon, 31 May 2021 15:07:25 -0600 Subject: [PATCH] Adding a success response when using wp-cli with this --- includes/class-nmspcli.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-nmspcli.php b/includes/class-nmspcli.php index ccc75d3..eb90173 100644 --- a/includes/class-nmspcli.php +++ b/includes/class-nmspcli.php @@ -22,8 +22,8 @@ class NmspCli { 'nmsp-plugin do', array( $this, 'do_the_thing' ), array( - 'shortdesc' => 'The short description.', - 'longdesc' => "This is the super long description that will go on and on my friend. Some people started writing it not knowing what it was, and we'll continue writing it forever just because this is the description that never ends...", + 'shortdesc' => __( 'The short description.', 'nmsp-plugin-name-text-domain' ), + 'longdesc' => __( "This is the super long description that will go on and on my friend. Some people started writing it not knowing what it was, and we'll continue writing it forever just because this is the description that never ends...", 'nmsp-plugin-name-text-domain' ), ), ); } @@ -36,7 +36,7 @@ class NmspCli { * @return void */ public function do_the_thing(): void { - // + WP_CLI::success( __( 'Congradulations, it is working.', 'nmsp-plugin-name-text-domain' ) ); } }