mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/poetry-about
Normal file
14
tldr/poetry-about
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry about
|
||||
|
||||
> Get information about Poetry, an application to manage Python packages and dependencies.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#about>.
|
||||
|
||||
- Display global information about Poetry, including the current version:
|
||||
|
||||
`poetry about`
|
||||
22
tldr/poetry-check
Normal file
22
tldr/poetry-check
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry check
|
||||
|
||||
> Manage Poetry file validation and consistency.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#check>.
|
||||
|
||||
- Check validation and consistency between `pyproject.toml` and `poetry.lock` for Poetry:
|
||||
|
||||
`poetry check`
|
||||
|
||||
- Verify that `poetry.lock` exists:
|
||||
|
||||
`poetry check --lock`
|
||||
|
||||
- Fail if warnings are reported:
|
||||
|
||||
`poetry check --strict`
|
||||
22
tldr/poetry-debug
Normal file
22
tldr/poetry-debug
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry-debug
|
||||
|
||||
> Debug issues with your Poetry project.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#debug>.
|
||||
|
||||
- Show debug info about Poetry and your project's virtual environment:
|
||||
|
||||
`poetry debug info`
|
||||
|
||||
- Attempt to resolve your project dependencies:
|
||||
|
||||
`poetry debug resolve`
|
||||
|
||||
- Show supported packaging tags for your project's active virtual environment:
|
||||
|
||||
`poetry debug tags`
|
||||
26
tldr/poetry-python
Normal file
26
tldr/poetry-python
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry-python
|
||||
|
||||
> Manage Python versions through Poetry.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#python>.
|
||||
|
||||
- Install the specified Python version:
|
||||
|
||||
`poetry python install {{3.13.1}}`
|
||||
|
||||
- List all Python versions managed by System or Poetry:
|
||||
|
||||
`poetry python list`
|
||||
|
||||
- List all Python versions managed by Poetry:
|
||||
|
||||
`poetry python list --managed`
|
||||
|
||||
- Remove the specified Python version (if managed by Poetry):
|
||||
|
||||
`poetry python remove {{3.13.1}}`
|
||||
27
tldr/poetry-version
Normal file
27
tldr/poetry-version
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry version
|
||||
|
||||
> Manage Poetry project version.
|
||||
> Assumes the following project stages: `patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`, `prerelease`.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#version>.
|
||||
|
||||
- Output the current version:
|
||||
|
||||
`poetry version {{[-s|--short]}}`
|
||||
|
||||
- Set project to a specific phase:
|
||||
|
||||
`poetry version {{stage}}`
|
||||
|
||||
- Increment the project to the next prerelease phase:
|
||||
|
||||
`poetry version --next-phase`
|
||||
|
||||
- Test project stage function without writing to `pyproject.toml`:
|
||||
|
||||
`poetry version {{stage}} --dry-run`
|
||||
41
tldr/repomix
Normal file
41
tldr/repomix
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# repomix
|
||||
|
||||
> Pack a Github repository into an AI-friendly file.
|
||||
> More information: <https://github.com/yamadashy/repomix>.
|
||||
|
||||
- Output custom format:
|
||||
|
||||
`repomix {{[-o|--output]}} {{path/to/file}} --style {{xml|markdown|plain}}`
|
||||
|
||||
- Send output to `stdout`:
|
||||
|
||||
`repomix --stdout > {{path/to/file}}`
|
||||
|
||||
- Send output to `stdout`, then pipe into another program:
|
||||
|
||||
`repomix --stdout | {{less}}`
|
||||
|
||||
- Output with compression:
|
||||
|
||||
`repomix --compress`
|
||||
|
||||
- Process specific files:
|
||||
|
||||
`repomix --include "{{src/**/*.ts}}" --ignore "{{**/*.test.ts}}"`
|
||||
|
||||
- Pack a repository from a branch:
|
||||
|
||||
`repomix --remote {{https://github.com/user/repo/tree/main}}`
|
||||
|
||||
- Pack a repository at a specific commit:
|
||||
|
||||
`repomix --remote {{https://github.com/user/repo/commit/836abcd7335137228ad77feb28655d85712680f1}}`
|
||||
|
||||
- Pack repository using shorthand:
|
||||
|
||||
`repomix --remote {{user/repo}}`
|
||||
Reference in New Issue
Block a user