clap/locale: fix the colors for all programs (Closes: #8501) - #8542
Conversation
|
Some GNU tests will fail. |
|
GNU testsuite comparison: |
3c8fe44 to
2317d7f
Compare
|
GNU testsuite comparison: |
2317d7f to
7af285f
Compare
|
GNU testsuite comparison: |
5e23a1b to
12220a7
Compare
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
There was a problem hiding this comment.
This snippet is almost identical with the should_use_color_stderr function, the only difference is in what is passed to is_terminal. Maybe should_use_color_stderr can be made more flexible so that it can be used here, too?
|
GNU testsuite comparison: |
There was a problem hiding this comment.
I'm undecided whether a ColorManager concept is necessary or a bool property in ErrorFormatter would be enough.
There was a problem hiding this comment.
What's the reason for splitting the setup of command into two parts? Why not doing the localization at the end?
There was a problem hiding this comment.
What's the reason for splitting the setup of command into two parts? Why not doing the localization at the end?
There was a problem hiding this comment.
What's the reason for splitting the setup of command into two parts? Why not doing the localization at the end?
There was a problem hiding this comment.
What's the reason for splitting the setup of command into two parts? Why not doing the localization at the end?
There was a problem hiding this comment.
What's the reason for splitting the setup of command into two parts? Why not doing the localization at the end?
|
GNU testsuite comparison: |
77003fa to
35381dd
Compare
|
GNU testsuite comparison: |
35381dd to
e6a8666
Compare
|
GNU testsuite comparison: |
251e258 to
ee0fae5
Compare
|
GNU testsuite comparison: |
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
ee0fae5 to
23f3551
Compare
|
GNU testsuite comparison: |
|
Good work :) |
and add tests to make sure we don't regress in the future