-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Replace $verbose with VERBOSITY_VERBOSE #11831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I'm a bit unsure about this one server/apps/files/lib/Command/Scan.php Lines 206 to 209 in 0fca815
suppress output looks wrong to me but it was there before. |
|
Nice! Didn't know about this flag. Will definitely use this in future commands 🚀 |
Maybe @icewind1991 can give some input on this. Ref ce2dba0. |
Signed-off-by: Daniel Kesselberg <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]>
06b2f1b to
1177ad7
Compare
| } | ||
|
|
||
| $scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) { | ||
| $output->writeln("\tFile\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristophWurst may i revert \t like you suggested in #11968?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this.
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
--verboseand--quietworks out of the box for commands. When you are fine with the default behaviour there is no need to redefine these options within an command.https://github.com/nextcloud/3rdparty/blob/f48c7e29b8001dff95ac00c16338becef1f175dd/symfony/console/Application.php#L865-L868
This pr replace
if ($verbose)withOutputInterface::VERBOSITY_VERBOSE