mirror of
https://github.com/onyx-and-iris/q3rcon-cli.git
synced 2026-04-13 04:23:38 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 80638762d3 | |||
| 68f917286f |
@@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2026-present onyx-and-iris <code@onyxandiris.online>
|
# SPDX-FileCopyrightText: 2026-present onyx-and-iris <code@onyxandiris.online>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
__version__ = '0.3.1'
|
__version__ = '0.3.2'
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ class Q3rconCli(Command):
|
|||||||
f"Timeout waiting for response for command: '{command}'"
|
f"Timeout waiting for response for command: '{command}'"
|
||||||
)
|
)
|
||||||
|
|
||||||
if response:
|
|
||||||
console.out.print_response(response)
|
console.out.print_response(response)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,8 +50,7 @@ class OutConsole(Console):
|
|||||||
return OutConsole.COLOUR_CODE_REGEX.sub('', s)
|
return OutConsole.COLOUR_CODE_REGEX.sub('', s)
|
||||||
|
|
||||||
def print_response(self, response: str):
|
def print_response(self, response: str):
|
||||||
response = self._remove_colour_codes(response).removeprefix('print\n')
|
if response := self._remove_colour_codes(response).removeprefix('print\n'):
|
||||||
|
|
||||||
cprint(response, fg=self.style)
|
cprint(response, fg=self.style)
|
||||||
|
|
||||||
def print_status(self, response: str):
|
def print_status(self, response: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user