Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
150f2d4a
Commit
150f2d4a
authored
Sep 29, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dao Data生成
parent
76254653
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
27 deletions
+1
-27
src/Commands/GenerateCommand
+1
-27
No files found.
src/Commands/GenerateCommand
View file @
150f2d4a
...
@@ -17,7 +17,7 @@ use Swoft\Console\Output\Output;
...
@@ -17,7 +17,7 @@ use Swoft\Console\Output\Output;
use Swoft\Task\Task;
use Swoft\Task\Task;
/**
/**
*
Test command
*
generate dao,data commands
*
*
* @Command(coroutine=false)
* @Command(coroutine=false)
*/
*/
...
@@ -43,8 +43,6 @@ class GenerateCommand
...
@@ -43,8 +43,6 @@ class GenerateCommand
*/
*/
public function Dao(Input $input, Output $output)
public function Dao(Input $input, Output $output)
{
{
var_dump(alias('@commonCommands'));
$className = $input->getOpt('n');
$className = $input->getOpt('n');
$entityName = $input->getOpt('e');
$entityName = $input->getOpt('e');
...
@@ -118,27 +116,4 @@ class GenerateCommand
...
@@ -118,27 +116,4 @@ class GenerateCommand
file_put_contents($daoPath,$content);
file_put_contents($daoPath,$content);
}
}
/**
* this task command
*
* @Usage
* test:{command} [arguments] [options]
*
* @Options
* -o,--o this is command option
*
* @Arguments
* arg this is argument
*
* @Example
* php swoft test:task
*
* @Mapping()
*/
public function task()
{
$result = Task::deliver('sync', 'console', ['console']);
var_dump($result);
}
}
}
\ No newline at end of file
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