Skip to content

Commit

Permalink
Merge pull request #105 from wp-cli/use-command-namespace-description
Browse files Browse the repository at this point in the history
Add a "network" command namespace.
  • Loading branch information
danielbachhuber authored Nov 1, 2017
2 parents c40f0e9 + c2be57c commit abded98
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entity-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@
);

WP_CLI::add_command( 'user term', 'User_Term_Command' );

if ( class_exists( 'WP_CLI\Dispatcher\CommandNamespace' ) ) {
WP_CLI::add_command( 'network', 'Network_Namespace' );
}
18 changes: 18 additions & 0 deletions src/Network_Namespace.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

use WP_CLI\Dispatcher\CommandNamespace;

/**
* Perform network-wide operations.
*
* ## EXAMPLES
*
* # Get a list of super-admins
* $ wp network meta get 1 site_admins
* array (
* 0 => 'supervisor',
* )
*/
class Network_Namespace extends CommandNamespace {

}

0 comments on commit abded98

Please sign in to comment.