Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions src/Admin_Tools_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
* @package ee-cli
*/

use Composer\Console\Application;
use EE\Model\Site;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Filesystem\Filesystem;
use function EE\Site\Utils\auto_site_name;

Expand Down Expand Up @@ -41,7 +39,13 @@ public function __construct() {
}

/**
* Installs admin-tools for EasyEngine.
* Installs admin tools for EasyEngine.
*
* ## EXAMPLES
*
* # Install admin tools
* $ ee admin-tools install
*
*/
public function install() {

Expand Down Expand Up @@ -88,7 +92,7 @@ public function install() {
}

/**
* Enables admin-tools on given site.
* Enables admin tools on site.
*
* ## OPTIONS
*
Expand All @@ -97,6 +101,15 @@ public function install() {
*
* [--force]
* : Force enabling of admin-tools for a site.
*
* ## EXAMPLES
*
* # Enable admin tools on site
* $ ee admin-tools up example.com
*
* # Force enable admin tools on site
* $ ee admin-tools up example.com --force
*
*/
public function up( $args, $assoc_args ) {

Expand Down Expand Up @@ -153,6 +166,15 @@ public function up( $args, $assoc_args ) {
*
* [--force]
* : Force disabling of admin-tools for a site.
*
* ## EXAMPLES
*
* # Disable admin tools on site
* $ ee admin-tools down example.com
*
* # Force disable admin tools on site
* $ ee admin-tools down example.com --force
*
*/
public function down( $args, $assoc_args ) {

Expand Down