Skip to content

Commit

Permalink
Updated all packages InstallCommand => callSilent()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond committed Mar 7, 2024
1 parent 94e6734 commit b7682ab
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/audit/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function publishConfiguration(): void
if (confirm('Do you wish to publish the configuration?', true)) {
if (! File::exists('config/audit.php')) {
info('Publishing Audit Configuration...');
$this->call('vendor:publish', ['--tag' => 'audit-config']);
$this->callSilent('vendor:publish', ['--tag' => 'audit-config']);
} else {
warning('The Audit config already exist. The config will not be published.');
}
Expand All @@ -97,7 +97,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running Audit Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/builder/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function publishConfiguration(): void
if (confirm('Do you wish to publish the configuration?', true)) {
if (! File::exists('config/builder.php')) {
info('Publishing Builder Configuration...');
$this->call('vendor:publish', ['--tag' => 'builder-config']);
$this->callSilent('vendor:publish', ['--tag' => 'builder-config']);
} else {
warning('The Builder config already exist. The config will not be published.');
}
Expand All @@ -97,7 +97,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running Builder Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function publishConfiguration(): void
if (confirm('Do you wish to publish the configuration?', true)) {
if (! File::exists('config/core.php')) {
info('Publishing Core Configuration...');
$this->call('vendor:publish', ['--tag' => 'core-config']);
$this->callSilent('vendor:publish', ['--tag' => 'core-config']);
} else {
warning('The Core config already exist. The config will not be published.');
}
Expand All @@ -82,7 +82,7 @@ public function checkForFilament(): void
info(' ');
if (confirm('Do you want to install Filament now?', true)) {
info('Starting Filament installer...');
$this->call('filament:install', ['--panels' => true]);
$this->callSilent('filament:install', ['--panels' => true]);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/jobs/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function checkForFilament(): void
info(' ');
if (confirm('Do you want to install Filament now?', true)) {
info('Starting Filament installer...');
$this->call('filament:install', ['--panels' => true]);
$this->callSilent('filament:install', ['--panels' => true]);
}
}

Expand Down Expand Up @@ -163,7 +163,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running Jobs Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/page/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function publishConfiguration(): void
if (confirm('Do you wish to publish the configuration?', true)) {
if (! File::exists('config/page.php')) {
info('Publishing Page Configuration...');
$this->call('vendor:publish', ['--tag' => 'page-config']);
$this->callSilent('vendor:publish', ['--tag' => 'page-config']);
} else {
warning('The Page config already exist. The config will not be published.');
}
Expand All @@ -97,7 +97,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running Page Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/press/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function publishConfiguration(): void
if (confirm('Do you wish to publish the configuration?', true)) {
if (! File::exists('config/press.php')) {
info('Publishing Press Configuration...');
$this->call('vendor:publish', ['--tag' => 'press-config']);
$this->callSilent('vendor:publish', ['--tag' => 'press-config']);
} else {
warning('The Press config already exist. The config will not be published.');
}
Expand All @@ -97,7 +97,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running Press Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/sync/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function publishConfiguration(): void
if (confirm('Do you wish to publish the configuration?', true)) {
if (! File::exists('config/sync.php')) {
info('Publishing Sync Configuration...');
$this->call('vendor:publish', ['--tag' => 'sync-config']);
$this->callSilent('vendor:publish', ['--tag' => 'sync-config']);
} else {
warning('The Sync config already exist. The config will not be published.');
}
Expand All @@ -97,7 +97,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running Sync Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/user/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function runMigrations(): void
{
if (confirm('Do you wish to run the migrations?', true)) {
info('Running User Migrations...');
$this->call('migrate');
$this->callSilent('migrate');
}
}

Expand Down

0 comments on commit b7682ab

Please sign in to comment.