Adding a success response when using wp-cli with this
This commit is contained in:
parent
69b5dd7a5a
commit
5aaf4bf1d0
@ -22,8 +22,8 @@ class NmspCli {
|
|||||||
'nmsp-plugin do',
|
'nmsp-plugin do',
|
||||||
array( $this, 'do_the_thing' ),
|
array( $this, 'do_the_thing' ),
|
||||||
array(
|
array(
|
||||||
'shortdesc' => 'The short description.',
|
'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...",
|
'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
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function do_the_thing(): void {
|
public function do_the_thing(): void {
|
||||||
//
|
WP_CLI::success( __( 'Congradulations, it is working.', 'nmsp-plugin-name-text-domain' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user