Black
This commit is contained in:
parent
b1f539592c
commit
5f74d80267
10
bot_z/cli.py
10
bot_z/cli.py
|
@ -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.")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user