Prints a failure (may or may not be an error) - e.g. login creds didn't work
(self, msg, color="red", *args, **kwargs)
| 154 | |
| 155 | @no_debug |
| 156 | def fail(self, msg, color="red", *args, **kwargs): |
| 157 | """Prints a failure (may or may not be an error) - e.g. login creds didn't work""" |
| 158 | msg, kwargs = self.format(f"{colored('[-]', color, attrs=['bold'])} {msg}", kwargs) |
| 159 | text = Text.from_ansi(msg) |
| 160 | nxc_console.print(text, *args, **kwargs) |
| 161 | self.log_console_to_file(text, *args, **kwargs) |
| 162 | |
| 163 | def log_console_to_file(self, text, *args, **kwargs): |
| 164 | """Log the console output to a file |