rpm-software-management / dnf5

Next-generation RPM package management system
Other
255 stars 86 forks source link

Implement `--color` flag and respect `color` option #839

Open evan-goode opened 1 year ago

evan-goode commented 1 year ago

Noticed by a participant in the 2023-08-11 test week: https://fedoraproject.org/wiki/Test_Day:2023-08-11_Fedora_39_DNF_5#cite_note-74.

  1. For commands that produce colorful output, such as info, search, and list, colors are currently shown iff stdout is a terminal, which is the behavior of --setopt=color=auto. color=always and color=never are not respected.
  2. The --color=auto|never|always argument to set the color configuration option is missing.

These items are probably low priority; color=auto is desired in the vast majority of cases. But some scripts may invoke dnf --color=never ... and it would be nice to not break them.

alimirjamali commented 1 month ago

PR Submitted. We specifically require this option for QubesOS

review priority: low