Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 826f0dd

Browse files
committed
Clean: Remove unnecessary shell --venv option.
1 parent 9118420 commit 826f0dd

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docker/docker_tools_misc.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,14 @@
4343
# ``shell``
4444
# ---------
4545
@click.command()
46-
@click.option(
47-
"--venv/--no-venv",
48-
default=True,
49-
help="Open a shell within the Python virtual environment for the Runestone servers.",
50-
)
51-
def shell(venv: bool) -> None:
46+
def shell() -> None:
5247
"""
53-
Open a Bash shell in the Docker container.
48+
Open a Bash shell in the Docker container, using the Python virtual environment for the Runestone servers.
5449
"""
5550
# Ask for an interactive console.
5651
ensure_in_docker(True)
5752
# Skip a check, since the user will see any failures and because this raises an exception of the last command in the shell produced a non-zero exit code.
58-
if venv:
59-
xqt("poetry run bash", cwd=env.RUNESTONE_PATH, check=False)
60-
else:
61-
xqt("bash", check=False)
53+
xqt("bash", cwd=env.RUNESTONE_PATH, check=False)
6254

6355

6456
# ``start_servers``

0 commit comments

Comments
 (0)