Skip to content

Commit

Permalink
fix: format files
Browse files Browse the repository at this point in the history
  • Loading branch information
Danyal-Faheem committed Nov 5, 2024
1 parent d8c81ba commit 3711991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tutor/commands/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def job_runner(self, config: Config) -> DevTaskRunner:
def dev(context: click.Context) -> None:
context.obj = DevContext(context.obj.root)


@click.command(
short_help="Attach a running container",
help="Attach a running container for debugging purposes. This is a wrapper around `docker compose attach`.",
Expand All @@ -53,6 +54,7 @@ def attach(context: click.Context, service: str) -> None:
print(service)
context.invoke(compose.dc_command, command="attach", args=[service])


@hooks.Actions.COMPOSE_PROJECT_STARTED.add()
def _stop_on_local_start(root: str, config: Config, project_name: str) -> None:
"""
Expand All @@ -72,5 +74,6 @@ def _build_openedx_dev_on_launch(
image_names.append("openedx-dev")
return image_names


dev.add_command(attach)
compose.add_commands(dev)

0 comments on commit 3711991

Please sign in to comment.