add Config class for configuring timings for both interactive and direct modes.

pre_run_hook added, it runs before all subcommands.

gametype command now calls maprestart command directly if the -f flag is passed.
This commit is contained in:
2026-03-25 08:27:48 +00:00
parent 89539ae817
commit 75c7e0afad
9 changed files with 114 additions and 35 deletions

View File

@@ -63,7 +63,7 @@ export Q3RCON_CLI_PASSWORD="<rcon password>"
Usage: q3rcon-cli [OPTIONS] COMMAND
┏━ Subcommands ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ fastrestart Executes a fast restart of the server
┃ fastrestart Executes a fast restart of the map
┃ gametype Get or set the current gametype of the server ┃
┃ hostname Get or set the current hostname of the server ┃
┃ map Get the current map or change to a new one ┃