Adding a success response when using wp-cli with this

This commit is contained in:
Brian 2021-05-31 15:07:25 -06:00
parent 69b5dd7a5a
commit 5aaf4bf1d0
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -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' ) );
}
}