From 05a12e0882f68623642ce085d4c19e0090e0ea79 Mon Sep 17 00:00:00 2001 From: Jan Snasel Date: Sat, 30 Sep 2023 11:58:03 +0000 Subject: [PATCH] feat: Added `--service` to `invoke debug` --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 866792e..0aac57f 100644 --- a/tasks.py +++ b/tasks.py @@ -100,9 +100,9 @@ def logs(context, service="", follow=False, tail=None): @task -def debug(context): +def debug(context, service=_DEFAULT_SERVICE): print("Starting Nautobot in debug mode...") - return context.run("docker-compose up", env=_DOCKER_COMPOSE_ENV, pty=True) + return context.run(f"docker-compose up -- {service}", env=_DOCKER_COMPOSE_ENV, pty=True) def run_cmd(context, exec_cmd, local=INVOKE_LOCAL, service=_DEFAULT_SERVICE):