Skip to content

Commit 8e9390d

Browse files
committed
Align class name
1 parent 4e66eea commit 8e9390d

File tree

3 files changed

+4
-36
lines changed

3 files changed

+4
-36
lines changed

src/BlueprintServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Blueprint;
44

5-
use Blueprint\Commands\BlueprintCommand;
5+
use Blueprint\Commands\BuildCommand;
66
use Blueprint\Commands\EraseCommand;
77
use Blueprint\Commands\NewCommand;
88
use Blueprint\Commands\TraceCommand;
@@ -43,7 +43,7 @@ public function register()
4343

4444
$this->app->bind('command.blueprint.build',
4545
function ($app) {
46-
return new BlueprintCommand($app['files']);
46+
return new BuildCommand($app['files']);
4747
}
4848
);
4949
$this->app->bind('command.blueprint.erase',

src/Commands/BlueprintCommand.php renamed to src/Commands/BuildCommand.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Illuminate\Support\Str;
1010
use Symfony\Component\Console\Input\InputArgument;
1111

12-
class BlueprintCommand extends Command
12+
class BuildCommand extends Command
1313
{
1414
/**
1515
* The name and signature of the console command.
@@ -73,20 +73,10 @@ public function handle()
7373
protected function getArguments()
7474
{
7575
return [
76-
['draft', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Which models to include', []],
76+
['draft', InputArgument::OPTIONAL, 'The path to the draft file, default: draft.yaml or draft.yaml', []],
7777
];
7878
}
7979

80-
/**
81-
* Get the console command options.
82-
*
83-
* @return array
84-
*/
85-
protected function getOptions()
86-
{
87-
return [];
88-
}
89-
9080
private function outputStyle($action)
9181
{
9282
if ($action === 'deleted') {

src/Commands/EraseCommand.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,6 @@ public function handle()
7272
$this->files->put('.blueprint', $blueprint->dump($generated));
7373
}
7474

75-
/**
76-
* Get the console command arguments.
77-
*
78-
* @return array
79-
*/
80-
protected function getArguments()
81-
{
82-
return [
83-
['draft', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Which models to include', []],
84-
];
85-
}
86-
87-
/**
88-
* Get the console command options.
89-
*
90-
* @return array
91-
*/
92-
protected function getOptions()
93-
{
94-
return [];
95-
}
96-
9775
private function outputStyle($action)
9876
{
9977
if ($action === 'created') {

0 commit comments

Comments
 (0)