-
Notifications
You must be signed in to change notification settings - Fork 93
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
Suppress header in dnf list --upgrades
in --quiet
mode
#753
Comments
Sorry for no comment for so long. This issue is valid. The |
That's was an unfortunate choice to use CPP instead of more safe and modern Rust or more maintainable Go in 2021. I guess the choice was made to improve the speed, but we all know that it is algorithmic strength and parallelization that gives the best results. Maybe the CPP choice was to get the minimal footprint, because As a co maintainer of https://cli.urfave.org/ I could give you a patch in Go, but for CPP I have no idea how to add global flag and check for it here. Lemme ask LLM. |
Asked LLM, but it was unable to discover where Lines 150 to 163 in 2d95658
And here is the commit that added it, with the Need to check if it is still callable. |
dnf5/dnf5/commands/list/list.cpp Line 259 in 62bd805
dnf5/dnf5/commands/list/list.cpp Line 167 in 62bd805
dnf5/dnf5/commands/list/list.cpp Lines 136 to 139 in 62bd805
That's a poor design to me. How to handle user input and output is the responsibility of user facing client code. The library should just handle the data - JSON or whatever in and out. |
|
We have decided to reject this functionality. |
First @pkratoch says that the issue is valid, I spend time, now it is not valid. :( |
@abitrolly I am sorry, I previously only confirmed that the |
The line "Available upgrades" is not suppressed when running
dnf list --upgrades --quiet
.dnf5/dnf5/commands/list/list.cpp
Line 216 in 0019b12
Is there any way to turn it off?
The text was updated successfully, but these errors were encountered: