Setter for color output mode. Used by prompt_toolkit's KeyBindingManager. KeyBindingManager expects this function to be callable so we can't use @property and @attrib.setter. Args: * color: A boolean that represents the color flag. Returns:
(self, color)
| 118 | click.secho(str(e), fg='red') |
| 119 | |
| 120 | def set_color(self, color): |
| 121 | """Setter for color output mode. |
| 122 | |
| 123 | Used by prompt_toolkit's KeyBindingManager. |
| 124 | KeyBindingManager expects this function to be callable so we can't use |
| 125 | @property and @attrib.setter. |
| 126 | |
| 127 | Args: |
| 128 | * color: A boolean that represents the color flag. |
| 129 | |
| 130 | Returns: |
| 131 | None. |
| 132 | """ |
| 133 | self.config_obj[self.config.MAIN][self.config.COLOR] = color |
| 134 | |
| 135 | def get_color(self): |
| 136 | """Getter for color output mode. |
no outgoing calls