from aioq3rcon import Client from clypi import Command, Spinner, arg from typing_extensions import override from q3rcon_cli import console class Plugins(Command): """Prints the currently loaded plugins of the server.""" host: str = arg(inherited=True) port: int = arg(inherited=True) password: str = arg(inherited=True) @override async def run(self): async with Spinner('Fetching plugins...'): async with Client(self.host, self.port, self.password) as client: response = await client.send_command('plugins') console.out.print_response(response)