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

Fix --no-color in ShowPatchAction #4638

merged 1 commit into from Aug 14, 2017
Jump to file or symbol
Failed to load files and symbols.
+4 −4
Diff settings


Just for now

ShowPatchAction: Change no_color

Closes #4618
  • Loading branch information...
Nosferatul committed Aug 12, 2017
commit f43bd5e7cb908c5d3a7b384924bc5f282a2e625a
@@ -81,18 +81,18 @@ def apply(self,
colored: bool=True,
no_color: bool=False,
show_result_on_top: bool=False):
(S)how patch
:param colored:
:param no_color:
Whether or not to use colored output.
:param show_result_on_top:
Set this to True if you want to show the result info on top.
(Useful for e.g. coala_ci.)
printer = ConsolePrinter(colored)
printer = ConsolePrinter(not no_color)
if show_result_on_top:
from coalib.output.ConsoleInteraction import print_result
@@ -21,7 +21,7 @@ def setUp(self):
self.test_result = Result('origin', 'message', diffs=self.diff_dict)
self.section = Section('name')
self.section.append(Setting('colored', 'false'))
self.section.append(Setting('no_color', 'True'))
def test_is_applicable(self):
diff = Diff([], rename='new_name')
ProTip! Use n and p to navigate between commits in a pull request.