1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Add --print flag to print output while diagnostics are running

This commit is contained in:
Aryeh Raber
2020-04-25 14:33:24 +02:00
parent ead9568aca
commit e59fa533f1
2 changed files with 13 additions and 5 deletions

View File

@@ -537,13 +537,15 @@
/**
* Output diagnostics to aid in debugging Valet.
*/
$app->command('diagnose', function () {
$app->command('diagnose [-p|--print]', function ($print) {
info('Running diagnostics...');
Diagnose::run();
Diagnose::run($print);
info('Diagnostics output has been copied to your clipboard.');
})->descriptions('Output diagnostics to aid in debugging Valet.');
})->descriptions('Output diagnostics to aid in debugging Valet.', [
'--print' => 'print diagnostics output while running'
]);
}
/**