Skip to content

Commit

Permalink
Remove backspace characters that are messing up the formatting on the…
Browse files Browse the repository at this point in the history
… reference docs page
  • Loading branch information
yirenlu92 committed Jan 13, 2025
1 parent 361509a commit 9b561e5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions modal/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,38 +407,38 @@ def shell(
),
pty: Optional[bool] = typer.Option(default=None, help="Run the command using a PTY."),
):
"""Run a SPOT ME command or interactive shell inside a Modal container.
"""Run a command or interactive shell inside a Modal container.
\b**Examples:**
**Examples:**
\bStart an ren ren ren interactive shell inside the default Debian-based image:
Start an interactive shell inside the default Debian-based image:
\b```
```
modal shell
```
\bStart an interactive shell with the spec for `my_function` in your App
Start an interactive shell with the spec for `my_function` in your App
(uses the same image, volumes, mounts, etc.):
\b```
```
modal shell hello_world.py::my_function
```
\bOr, if you're using a [modal.Cls](/docs/reference/modal.Cls), you can refer to a `@modal.method` directly:
Or, if you're using a [modal.Cls](/docs/reference/modal.Cls), you can refer to a `@modal.method` directly:
\b```
```
modal shell hello_world.py::MyClass.my_method
```
Start a `python` shell:
\b```
```
modal shell hello_world.py --cmd=python
```
\bRun a command with your function's spec and pipe the output to a file:
Run a command with your function's spec and pipe the output to a file:
\b```
```
modal shell hello_world.py -c 'uv pip list' > env.txt
```
"""
Expand Down

0 comments on commit 9b561e5

Please sign in to comment.