Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
7dcbf33a
Commit
7dcbf33a
authored
Jul 16, 2012
by
Shawn McCool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaned up help task
parent
644ecfcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
laravel/cli/tasks/help.json
+1
-1
laravel/cli/tasks/help.php
+5
-4
No files found.
laravel/cli/tasks/help.json
View file @
7dcbf33a
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
"command"
:
"php artisan bundle:publish"
"command"
:
"php artisan bundle:publish"
}
}
},
},
"Unit Test
s
"
:
{
"Unit Test
ing
"
:
{
"test"
:
{
"test"
:
{
"description"
:
"Run the application's tests."
,
"description"
:
"Run the application's tests."
,
"command"
:
"php artisan test"
"command"
:
"php artisan test"
...
...
laravel/cli/tasks/help.php
View file @
7dcbf33a
...
@@ -6,21 +6,22 @@ use Laravel\File;
...
@@ -6,21 +6,22 @@ use Laravel\File;
class
Help
extends
Task
{
class
Help
extends
Task
{
/**
/**
* List
* List
available artisan commands.
*
*
* @param array $arguments
* @param array $arguments
* @return void
* @return void
*/
*/
public
function
commands
()
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
)
foreach
(
$command_data
as
$category
=>
$commands
)
{
{
if
(
$i
++
!=
0
)
echo
PHP_EOL
;
if
(
$i
++
!=
0
)
echo
PHP_EOL
;
echo
PHP_EOL
.
"#
$category
"
.
PHP_EOL
;
echo
PHP_EOL
.
"#
$category
"
.
PHP_EOL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment