Adding a success response when using wp-cli with this
This commit is contained in:
@ -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' ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user