@@ 15-30 (lines=16) @@ | ||
12 | ||
13 | use Aura\Cli\Help; |
|
14 | ||
15 | class MigrateHelp extends Help |
|
16 | { |
|
17 | public function init() |
|
18 | { |
|
19 | $this->setSummary('Runs the migrations.'); |
|
20 | $this->setUsage([ |
|
21 | ' Migrate up to the current version.', |
|
22 | '<version> Migrate up to the version.', |
|
23 | 'status List all migration files and versions.', |
|
24 | 'version Show migration versions.' |
|
25 | ]); |
|
26 | $this->setDescr( |
|
27 | '<<bold>>migrate<<reset>> command runs the migrations and shows its status.' . PHP_EOL |
|
28 | ); |
|
29 | } |
|
30 | } |
|
31 |
@@ 15-31 (lines=17) @@ | ||
12 | ||
13 | use Aura\Cli\Help; |
|
14 | ||
15 | class RunHelp extends Help |
|
16 | { |
|
17 | public function init() |
|
18 | { |
|
19 | $this->setSummary('Run controller.'); |
|
20 | $this->setUsage('<controller> [<method> [<arg1> [<arg2> [...]]]]'); |
|
21 | $this->setUsage([ |
|
22 | '<controller>', |
|
23 | '<controller> <method>', |
|
24 | '<controller> <method> <arg1>', |
|
25 | '<controller> <method> <arg1> <arg2> [...]', |
|
26 | ]); |
|
27 | $this->setDescr( |
|
28 | 'Run controller via the CLI.' |
|
29 | ); |
|
30 | } |
|
31 | } |
|
32 |
@@ 15-31 (lines=17) @@ | ||
12 | ||
13 | use Aura\Cli\Help; |
|
14 | ||
15 | class SeedHelp extends Help |
|
16 | { |
|
17 | public function init() |
|
18 | { |
|
19 | $this->setSummary('Seed the database with records.'); |
|
20 | $this->setUsage([ |
|
21 | '', |
|
22 | '<class>' |
|
23 | ]); |
|
24 | $this->setOptions([ |
|
25 | 'l,list' => "List all seeder files only. With this option, seeding does not run.", |
|
26 | ]); |
|
27 | $this->setDescr( |
|
28 | 'Seed the database using Seeder class in "application/database/seeds" folder.' |
|
29 | ); |
|
30 | } |
|
31 | } |
|
32 |