Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-31 00:21:41 +00:00
parent 5985fac848
commit af1e54b296
12 changed files with 83 additions and 36 deletions

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a Python script:
`uv run {{script.py}}`
`uv run {{path/to/script.py}}`
- Run a Python module:
@@ -18,15 +18,15 @@ source: https://github.com/tldr-pages/tldr.git
- Run a command with additional packages installed temporarily:
`uv run --with {{package}} {{command}}`
`uv run {{[-w|--with]}} {{package}} {{command}}`
- Run a script with packages from a requirements file:
`uv run --with-requirements {{requirements.txt}} {{script.py}}`
`uv run --with-requirements {{path/to/requirements.txt}} {{path/to/script.py}}`
- Run in an isolated environment (no project dependencies):
`uv run --isolated {{script.py}}`
`uv run --isolated {{path/to/script.py}}`
- Run without syncing the environment first: