Commit 7dcbf33a authored by Shawn McCool's avatar Shawn McCool

cleaned up help task

parent 644ecfcc
......@@ -47,7 +47,7 @@
"command": "php artisan bundle:publish"
}
},
"Unit Tests": {
"Unit Testing": {
"test": {
"description": "Run the application's tests.",
"command": "php artisan test"
......
......@@ -6,21 +6,22 @@ use Laravel\File;
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'));
$i=0;
// 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment