cleaned up help task

This commit is contained in:
Shawn McCool 2012-07-16 10:28:40 +02:00
parent 644ecfcc25
commit 7dcbf33a80
2 changed files with 6 additions and 5 deletions

View File

@ -47,7 +47,7 @@
"command": "php artisan bundle:publish"
}
},
"Unit Tests": {
"Unit Testing": {
"test": {
"description": "Run the application's tests.",
"command": "php artisan test"

View File

@ -6,21 +6,22 @@
class Help extends Task {
/**
* List
* List available artisan commands.
*
* @param array $arguments
* @return void
*/
public function commands()
{
// read help contents
$command_data = json_decode(file_get_contents(__DIR__.'/help.json'));
$command_data = json_decode(File::get(__DIR__.'/help.json'));
// format and display help contents
$i=0;
foreach($command_data as $category => $commands)
{
if($i++ != 0) echo PHP_EOL;
echo PHP_EOL . "# $category" . PHP_EOL;