mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Nuke cruft
This commit is contained in:
parent
9d06eb5c7d
commit
64a2742246
@ -23,55 +23,6 @@ class OctoberVersion extends \Illuminate\Console\Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->comment('*** Detecting October CMS build...');
|
||||
|
||||
if (!App::hasDatabase()) {
|
||||
$build = UpdateManager::instance()->getBuildNumberManually($this->option('changes'));
|
||||
|
||||
// Skip setting the build number if no database is detected to set it within
|
||||
$this->comment('*** No database detected - skipping setting the build number.');
|
||||
} else {
|
||||
$build = UpdateManager::instance()->setBuildNumberManually($this->option('changes'));
|
||||
}
|
||||
|
||||
if (!$build['confident']) {
|
||||
$this->warn('*** We could not accurately determine your October CMS build due to the number of modifications. The closest detected build is October CMS build ' . $build['build'] . '.');
|
||||
} else if ($build['modified']) {
|
||||
$this->info('*** Detected a modified version of October CMS build ' . $build['build'] . '.');
|
||||
} else {
|
||||
$this->info('*** Detected October CMS build ' . $build['build'] . '.');
|
||||
}
|
||||
|
||||
if ($this->option('changes')) {
|
||||
$this->line('');
|
||||
$this->comment('We have detected the following modifications:');
|
||||
|
||||
if (count($build['changes']['added'] ?? [])) {
|
||||
$this->line('');
|
||||
$this->info('Files added:');
|
||||
|
||||
foreach (array_keys($build['changes']['added']) as $file) {
|
||||
$this->line(' - ' . $file);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($build['changes']['modified'] ?? [])) {
|
||||
$this->line('');
|
||||
$this->info('Files modified:');
|
||||
|
||||
foreach (array_keys($build['changes']['modified']) as $file) {
|
||||
$this->line(' - ' . $file);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($build['changes']['removed'] ?? [])) {
|
||||
$this->line('');
|
||||
$this->info('Files removed:');
|
||||
|
||||
foreach (array_keys($build['changes']['removed']) as $file) {
|
||||
$this->line(' - ' . $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->comment('*** Thanks for using October CMS!');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user