From 63bd4c8db67ae46075f111c5d95e256434d51416 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Wed, 5 Aug 2020 21:26:59 +0200 Subject: [PATCH] [domain] changed "route" command to "domain", fixed "list_routes" --- halfapi/cli/domain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/halfapi/cli/domain.py b/halfapi/cli/domain.py index c832af1..0ea90c2 100644 --- a/halfapi/cli/domain.py +++ b/halfapi/cli/domain.py @@ -28,7 +28,7 @@ def delete_domain(domain): @click.option('--domain', '-d', default=None, multiple=True) @click.option('--update', default=False, is_flag=True) @cli.command() -def routes(domain, update): +def domain(domain, update): """ Lists routes for the specified domains, or update them in the database @@ -57,10 +57,10 @@ def routes(domain, update): def list_routes(domain): - click.echo(f'\nDomain {domain}') + click.echo(f'\nDomain {domain} :') routes = Acl(domain=domain) for route in routes.select(): - click.echo('-', route) + click.echo(f'- {route}') def update_db(domains):