Moved all console commands under the Cli folder for better organization (this requires a composer update -o to pick up)

This commit is contained in:
Djamil Legato
2014-08-31 22:54:35 -07:00
parent 8de6231116
commit 51cca81bc8
7 changed files with 13 additions and 13 deletions

View File

@@ -19,11 +19,11 @@ if (!file_exists(ROOT_DIR . 'index.php')) {
$app = new Application('Grav CLI Application', '0.1.0');
$app->addCommands(array(
new Grav\Console\InstallCommand(),
new Grav\Console\SetupCommand(),
new Grav\Console\CleanCommand(),
new Grav\Console\ClearCacheCommand(),
new Grav\Console\BackupCommand(),
new Grav\Console\NewProjectCommand(),
new Grav\Console\Cli\InstallCommand(),
new Grav\Console\Cli\SetupCommand(),
new Grav\Console\Cli\CleanCommand(),
new Grav\Console\Cli\ClearCacheCommand(),
new Grav\Console\Cli\BackupCommand(),
new Grav\Console\Cli\NewProjectCommand(),
));
$app->run();

View File

@@ -1,5 +1,5 @@
<?php
namespace Grav\Console;
namespace Grav\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;

View File

@@ -1,5 +1,5 @@
<?php
namespace Grav\Console;
namespace Grav\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;

View File

@@ -1,5 +1,5 @@
<?php
namespace Grav\Console;
namespace Grav\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;

View File

@@ -1,5 +1,5 @@
<?php
namespace Grav\Console;
namespace Grav\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
@@ -114,7 +114,7 @@ class InstallCommand extends Command {
if (!$this->local_config) {
$output->writeln('<red>No local configuration available, aborting...</red>');
$output->writeln('');
exit;
return;
}
exec('cd ' . $this->destination);

View File

@@ -1,5 +1,5 @@
<?php
namespace Grav\Console;
namespace Grav\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArrayInput;

View File

@@ -1,5 +1,5 @@
<?php
namespace Grav\Console;
namespace Grav\Console\Cli;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;