mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 23:56:00 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user