This commit is contained in:
sfigato 2019-02-05 09:07:46 +01:00 committed by blallo
parent b1f539592c
commit 5f74d80267
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -130,13 +130,19 @@ def start_daemon_command(
@cli.command("list") @cli.command("list")
@click.option("-s", "--status", is_flag=True, default=False, help="Show also the status of each client.") @click.option(
"-s",
"--status",
is_flag=True,
default=False,
help="Show also the status of each client.",
)
@click.pass_context @click.pass_context
def list_command(ctx: click.Context, status: bool) -> None: def list_command(ctx: click.Context, status: bool) -> None:
""" """
Shows the clients attached Shows the clients attached
""" """
logger.debug("Invoked the \"list\" command.") logger.debug('Invoked the "list" command.')
with PLifo(ctx.obj["lifo"]) as lifo: with PLifo(ctx.obj["lifo"]) as lifo:
if len(lifo) == 0: if len(lifo) == 0:
logger.info("No clients.") logger.info("No clients.")