Skip to content

Commit

Permalink
Push up default options
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Mar 7, 2014
1 parent 2ef97d7 commit c0dd1eb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 52 deletions.
13 changes: 0 additions & 13 deletions src/Way/Generators/Commands/ControllerGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,4 @@ protected function getArguments()
];
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'Where should the file be created?'],
['templatePath', null, InputOption::VALUE_OPTIONAL, 'The location of the template for this generator']
];
}

}
15 changes: 15 additions & 0 deletions src/Way/Generators/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php namespace Way\Generators\Commands;

use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Illuminate\Console\Command;
use Way\Generators\Filesystem\FileAlreadyExists;
use Way\Generators\Generator;
Expand Down Expand Up @@ -85,4 +87,17 @@ protected function getPathByOptionOrConfig($option, $configName)
return Config::get("generators::config.{$configName}");
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'Where should the file be created?'],
['templatePath', null, InputOption::VALUE_OPTIONAL, 'The location of the template for this generator']
];
}

}
13 changes: 0 additions & 13 deletions src/Way/Generators/Commands/ModelGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,4 @@ protected function getArguments()
];
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'Where should the file be created?'],
['templatePath', null, InputOption::VALUE_OPTIONAL, 'The location of the template for this generator']
];
}

}
13 changes: 0 additions & 13 deletions src/Way/Generators/Commands/SeederGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,4 @@ protected function getArguments()
);
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'Where should the file be created?', app_path('database/seeds')],
['templatePath', null, InputOption::VALUE_OPTIONAL, 'The location of the template for this generator']
];
}

}
13 changes: 0 additions & 13 deletions src/Way/Generators/Commands/ViewGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,4 @@ protected function getArguments()
];
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'Where should the file be created?'],
['templatePath', null, InputOption::VALUE_OPTIONAL, 'The location of the template for this generator']
];
}

}

0 comments on commit c0dd1eb

Please sign in to comment.