Renamed setup command to sandbox.

This commit is contained in:
Djamil Legato
2014-09-04 14:48:24 -07:00
parent e690e50d86
commit f7c2df0050
2 changed files with 5 additions and 8 deletions

View File

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

View File

@@ -8,7 +8,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
class SetupCommand extends Command
class SandboxCommand extends Command
{
protected $directories = array('/cache',
'/logs',
@@ -43,8 +43,8 @@ class SetupCommand extends Command
protected function configure()
{
$this
->setName('setup')
->setDescription('Setup of a base Grav system in your webroot')
->setName('sandbox')
->setDescription('Setup of a base Grav system in your webroot, good for development, playing around or starting fresh')
->addArgument(
'destination',
InputArgument::REQUIRED,
@@ -56,10 +56,7 @@ class SetupCommand extends Command
InputOption::VALUE_NONE,
'Symlink the base grav system'
)
->setHelp(<<<EOT
The <info>setup</info> command help create a development environment that uses symbolic links to link the core of grav to the git cloned repository
EOT
);
->setHelp("The <info>sandbox</info> command help create a development environment that can optionally use symbolic links to link the core of grav to the git cloned repository.\nGood for development, playing around or starting fresh");
$this->source = getcwd();
}