Skip to content

Commit e6291e8

Browse files
authored
Improves console output (#233)
1 parent 3823e28 commit e6291e8

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
],
1212
"require": {
1313
"php": "^8.0",
14-
"illuminate/console": "^9.0",
15-
"illuminate/filesystem": "^9.0",
16-
"illuminate/support": "^9.0",
17-
"illuminate/validation": "^9.0"
14+
"illuminate/console": "^9.21",
15+
"illuminate/filesystem": "^9.21",
16+
"illuminate/support": "^9.21",
17+
"illuminate/validation": "^9.21"
1818
},
1919
"require-dev": {
2020
"orchestra/testbench": "^7.0"

src/AuthCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function handle()
6464
$this->exportBackend();
6565
}
6666

67-
$this->info('Authentication scaffolding generated successfully.');
67+
$this->components->info('Authentication scaffolding generated successfully.');
6868
}
6969

7070
/**
@@ -92,7 +92,7 @@ protected function exportViews()
9292
{
9393
foreach ($this->views as $key => $value) {
9494
if (file_exists($view = $this->getViewPath($value)) && ! $this->option('force')) {
95-
if (! $this->confirm("The [{$value}] view already exists. Do you want to replace it?")) {
95+
if (! $this->components->confirm("The [$value] view already exists. Do you want to replace it?")) {
9696
continue;
9797
}
9898
}
@@ -116,7 +116,7 @@ protected function exportBackend()
116116
$controller = app_path('Http/Controllers/HomeController.php');
117117

118118
if (file_exists($controller) && ! $this->option('force')) {
119-
if ($this->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) {
119+
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) {
120120
file_put_contents($controller, $this->compileControllerStub());
121121
}
122122
} else {

src/ControllersCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ public function handle()
4444
);
4545
});
4646

47-
$this->info('Authentication scaffolding generated successfully.');
47+
$this->components->info('Authentication scaffolding generated successfully.');
4848
}
4949
}

src/UiCommand.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ protected function bootstrap()
5757
{
5858
Presets\Bootstrap::install();
5959

60-
$this->info('Bootstrap scaffolding installed successfully.');
61-
$this->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
60+
$this->components->info('Bootstrap scaffolding installed successfully.');
61+
$this->components->warn('Please run [npm install && npm run dev] to compile your fresh scaffolding.');
6262
}
6363

6464
/**
@@ -71,8 +71,8 @@ protected function vue()
7171
Presets\Bootstrap::install();
7272
Presets\Vue::install();
7373

74-
$this->info('Vue scaffolding installed successfully.');
75-
$this->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
74+
$this->components->info('Vue scaffolding installed successfully.');
75+
$this->components->warn('Please run [npm install && npm run dev] to compile your fresh scaffolding.');
7676
}
7777

7878
/**
@@ -85,7 +85,7 @@ protected function react()
8585
Presets\Bootstrap::install();
8686
Presets\React::install();
8787

88-
$this->info('React scaffolding installed successfully.');
89-
$this->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
88+
$this->components->info('React scaffolding installed successfully.');
89+
$this->components->warn('Please run [npm install && npm run dev] to compile your fresh scaffolding.');
9090
}
9191
}

0 commit comments

Comments
 (0)