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:
@@ -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'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user