Skip to content

Commit

Permalink
feat: Added --service to invoke debug
Browse files Browse the repository at this point in the history
  • Loading branch information
snaselj committed Sep 30, 2023
1 parent ba49e8b commit 05a12e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 05a12e0

Please sign in to comment.